DayzKode
An indexed view of Dayz source code generated by Doxygen
 
Loading...
Searching...
No Matches
UIScriptedMenu Class Reference
Inheritance diagram for UIScriptedMenu:
ConnectErrorScriptModuleUI

Private Member Functions

void Add (string message)
 
void AddActor (string actor_type)
 
void AddEvent (int actor_index)
 
void AddFavorite (string ipAddress, int port, bool favorite)
 
void AddFavoritesToFilter (GetServersInput input)
 
void AddGroup (int index, Input input)
 
void AddHandsItem (string id, string type)
 
void AddItem (string id, string type)
 
void AddItemToClipboard (TextListboxWidget text_listbox_widget)
 
void AddItemToPreset ()
 
void AddItemToPreset ()
 
void AddKeyframe ()
 
void AddMarker (vector pos, int color, int icon=0)
 
void AddServer (string message)
 
void Apply ()
 renames character More...
 
void Apply ()
 
void Apply ()
 
void AutoConnect ()
 
void Back ()
 
void Back ()
 
void Back ()
 
void Back ()
 
void Back ()
 
void Back ()
 
void BackButtonFocus ()
 
protected void BackOneLevel ()
 
protected void BackOneLevel ()
 
void BottomChanged ()
 
void ButtonSetAlphaAnim (Widget w)
 
protected void ButtonSetColor (Widget w, int color)
 
void ButtonSetColor (Widget w, int color)
 
void ButtonSetColor (Widget w, int color)
 
void ButtonSetColor (Widget w, int color)
 
void ButtonSetColor (Widget w, int color)
 
void ButtonSetColor (Widget w, int color)
 
protected void ButtonSetColor (Widget w, int color)
 
protected void ButtonSetText (Widget w, string text)
 
void ButtonSetText (Widget w, string text)
 
void ButtonSetText (Widget w, string text)
 
void ButtonSetText (Widget w, string text)
 
void ButtonSetText (Widget w, string text)
 
void ButtonSetText (Widget w, string text)
 
protected void ButtonSetTextColor (Widget w, int color)
 
void ButtonSetTextColor (Widget w, int color)
 
void ButtonSetTextColor (Widget w, int color)
 
void ButtonSetTextColor (Widget w, int color)
 
void ButtonSetTextColor (Widget w, int color)
 
void ButtonSetTextColor (Widget w, int color)
 
protected void ButtonSetTextColor (Widget w, int color)
 
void CameraToolsMenu ()
 
void Cancel ()
 
void Cancel ()
 
void CancelEnteringAlternateKeybind ()
 
void CancelEnteringKeybind ()
 
bool CanSaveDefaultCharacter ()
 
bool CanStoreBeOpened ()
 
void ChangeAccount ()
 
void ChangeConfigFilter ()
 
protected void ChangeCurrentCategory (int category)
 
void ChangeFilter (TStringArray classes, TextListboxWidget widget, EditBoxWidget filterWidget, int categoryMask=-1, bool ignoreScope=false)
 
void ChangeFilterItems ()
 
void ChangeFilterSound ()
 
void CharacterCreationMenu ()
 
void ChatInputMenu ()
 
protected void CheckForLightsAndNVG (out ref array< ref RadialQuickbarItem > items, int last_idx)
 
void CheckNewOptions ()
 
void Clear ()
 
void ClearAlternativeKeybind (int key_index)
 
void ClearHierarchy ()
 
void ClearKeybind (int key_index)
 
void CloseMapMenu ()
 
void CloseOnline ()
 
void CollapseHierarchy (int row)
 
protected void ColorDisable (Widget w)
 
void ColorDisable (Widget w)
 
void ColorDisable (Widget w)
 
void ColorDisable (Widget w)
 
void ColorDisabled (Widget w)
 
protected void ColorHighlight (Widget w)
 
void ColorHighlight (Widget w)
 
void ColorHighlight (Widget w)
 
void ColorHighlight (Widget w)
 
void ColorHighlight (Widget w)
 
void ColorHighlight (Widget w)
 
void ColorHighlight (Widget w)
 
void ColorHighlight (Widget w)
 
protected void ColorHighlight (Widget w)
 
protected void ColorNormal (Widget w)
 
void ColorNormal (Widget w)
 
void ColorNormal (Widget w)
 
void ColorNormal (Widget w)
 
void ColorNormal (Widget w)
 
void ColorNormal (Widget w)
 
void ColorNormal (Widget w)
 
void ColorNormal (Widget w)
 
protected void ColorNormal (Widget w)
 
void ColorRed (Widget w)
 
void ColorRed (Widget w)
 
void ColorRunButton (bool success)
 
void ColorWhite (Widget w, Widget enterW)
 
void ColorWhite (Widget w, Widget enterW)
 
private bool ComponentsOnChange (Widget w, int x, int y, bool finished)
 
private bool ComponentsOnClick (Widget w, int x, int y, int button)
 
protected void ComposeData ()
 Inits data structure. More...
 
void ConfirmAlternateKeybindEntry (TIntArray new_keys)
 
void ConfirmKeybindEntry (TIntArray new_keys)
 
void Connect (ServerBrowserEntry server)
 
void ConnectBestServer ()
 
void ConnectLastSession ()
 
protected void CreateContent (int selected_item_id=-1)
 
SyncPlayerList CreateFakePlayerList (int player_count)
 
protected void CreateGestureContent ()
 
void CreateGroupContainer ()
 
void CreateTabs ()
 
void CustomizeCharacter ()
 
void DeferredDefaultsInit ()
 
void DeleteEvent ()
 
protected void DeleteGestureItems ()
 
protected void DeleteItems ()
 
void DeleteKeyframe ()
 
void DeletePreset ()
 
void DeletePreset ()
 
protected void DrawConnectingLines (int index)
 
void DrawConnectingLines (int index)
 
void EarlyAccessMenu ()
 
void EnscriptHistoryBack ()
 
void EnscriptHistoryForward ()
 
protected void ExecuteSelectedCategory (Widget w)
 
protected void ExecuteSelectedItem ()
 
void Exit ()
 
void Exit ()
 
void Exit ()
 
void ExpandHierarchy (int row)
 
protected int FilterByVisible (array< Widget > input, array< Widget > filtered)
 returns count More...
 
void FilterFocus (bool focus)
 
protected bool FindAllChildrenByID (Widget wid, int user_id, out array< Widget > results)
 Finds all immediate children widgets with corresponding userIDs. More...
 
protected Widget FindChildByID (Widget wid, int user_id)
 Finds immediate child widget with a corresponding userID. More...
 
void FindInHierarchy (string class_name)
 
protected void GameRespawn (bool random)
 
void GameRetry (bool random)
 
void GenderChanged ()
 
void GesturesMenu ()
 
PlayerBase GetActor (int index)
 
float GetBlurValue ()
 
Param6< vector, vector, float, float, float, intGetCameraLine (int index)
 
vector GetCameraLookDir ()
 
protected array< ref JsonControlMappingInfoGetControlMappingInfo ()
 
int GetCurrentItemIndex ()
 
int GetCurrentItemIndex ()
 
string GetCurrentItemName ()
 
string GetCurrentItemName ()
 
string GetCurrentObjectName ()
 
string GetCurrentObjectName ()
 
string GetCurrentPositionName ()
 
int GetCurrentPresetIndex ()
 
int GetCurrentPresetIndex ()
 
string GetCurrentPresetName ()
 
string GetCurrentPresetName ()
 
KeybindingsContainer GetCurrentTab ()
 
TStringArray GetFavoritedServerIds ()
 
TStringArray GetFiltredConfigClasses (string search_string, TStringArray array_ret)
 
protected map< int, SceneObjectGetFiltredSceneObjects (string search_string, map< int, SceneObject > array_ret)
 
UIPropertyAttachment GetFreeUIPropertyAttchament ()
 
protected void GetGestureItems (out ref array< ref GestureMenuItem > gesture_items, GestureCategories category)
 
private map< string, ref TStringArrayGetItemNamesForSlots (TStringArray slots)
 
protected void GetItems (out ref array< ref RadialQuickbarItem > items)
 
TStringArray GetItemsClasses ()
 
vector GetMapPos ()
 
vector GetMouseLookDir ()
 
PlayerBase GetPlayerObj ()
 
int GetPresetIndexByName (string preset_name)
 
int GetPresetIndexByName (string preset_name)
 
ServerBrowserTab GetSelectedTab ()
 
TabType GetServersLoadingTab ()
 
TStringArray GetSoundClasses ()
 
string GetText ()
 
float GetTotalTime (int index)
 
void HandleLights (RadialQuickbarItem quickbar_item)
 
void HandleNVG (RadialQuickbarItem quickbar_item)
 
void HelpScreen ()
 
void Hide ()
 
void Hide ()
 
void Hide ()
 
void HideItemButtons ()
 
void HistoryBack ()
 
void HistoryForward ()
 
protected void HudShow (bool show)
 
void ImagenSetColor (Widget w, int color)
 
void ImagenSetColor (Widget w, int color)
 
void InGameMenuXbox ()
 
override Widget Init ()
 
override Widget Init ()
 
override Widget Init ()
 
override Widget Init ()
 
override Widget Init ()
 
override Widget Init ()
 
override Widget Init ()
 
override Widget Init ()
 
override Widget Init ()
 
override Widget Init ()
 
override Widget Init ()
 
override Widget Init ()
 
override Widget Init ()
 
override Widget Init ()
 
override Widget Init ()
 
override Widget Init ()
 
override Widget Init ()
 
override Widget Init ()
 
override Widget Init ()
 
override Widget Init ()
 
override Widget Init ()
 
override Widget Init ()
 
override Widget Init ()
 
override Widget Init ()
 
override Widget Init ()
 
override Widget Init ()
 
override Widget Init ()
 
override Widget Init ()
 
override Widget Init ()
 
override Widget Init ()
 
override Widget Init ()
 
override Widget Init ()
 
override Widget Init ()
 
override Widget Init ()
 
override Widget Init ()
 
override Widget Init ()
 
protected void InitInputSortingMap ()
 
override void InitMapItem (EntityAI item)
 
override void InitNoteRead (string text="")
 
override void InitNoteWrite (EntityAI paper, EntityAI pen, string text="")
 
void InitPresets (int index, Widget parent, Input input)
 
void InspectMenuNew ()
 
void InviteMenu ()
 
bool IsAnyTabChanged ()
 
bool IsCurrentPresetFixed ()
 
bool IsCurrentPresetFixed ()
 
bool IsFavorited (string server_id)
 
bool IsFocusable (Widget w)
 
bool IsFocusable (Widget w)
 
bool IsFocusable (Widget w)
 
bool IsFocusable (Widget w)
 
bool IsFocusable (Widget w)
 
bool IsFocusable (Widget w)
 
bool IsFocusable (Widget w)
 
bool IsFocusable (Widget w)
 
bool IsFocusable (Widget w)
 
bool IsLocalPlayer (string uid)
 
bool IsMenuClosing ()
 
bool IsMenuClosing ()
 
bool IsOnlineOpen ()
 
bool IsPresetFixed (string preset_name)
 
bool IsPresetFixed (string preset_name)
 
bool IsRespawn ()
 
bool IsStatic ()
 
bool IsStatic ()
 
void ItemMoveDown ()
 
void ItemMoveDown ()
 
void ItemMoveUp ()
 
void ItemMoveUp ()
 
void LateInit ()
 
void Leave ()
 
void Leave ()
 
void LoadData ()
 
void LoadDataAsync ()
 
void LoadFavoriteServers ()
 
protected void LoadFooterButtonTexts ()
 Initial texts load for the footer buttons. More...
 
protected void LoadFooterButtonTexts ()
 Initial texts load for the footer buttons. More...
 
protected void LoadFooterButtonTexts ()
 Initial texts load for the footer buttons. More...
 
void LoadingMenu ()
 
override void LoadMapMarkers ()
 
void LoadMods ()
 
void LoadMods ()
 
protected void LoadTextStrings ()
 Set correct bottom button texts based on platform (ps4 vs xbox texts) More...
 
protected void LoadTextStrings ()
 Set correct bottom button texts based on platform (ps4 vs xbox texts) More...
 
protected void LoadTextStrings ()
 Set correct bottom button texts based on platform (ps4 vs xbox texts) More...
 
void LoginQueueBase ()
 
void LoginTimeBase ()
 
void LogoutMenu ()
 
protected void MarkSelected (Widget w)
 
protected void MarkSelected (Widget w)
 
void MenuRequestRespawn (UIScriptedMenu menu, bool random)
 
void MenuRequestRespawn (UIScriptedMenu menu, bool random)
 
void NewPreset (string preset_name)
 
void NewPreset (string preset_name)
 
void NextCharacter ()
 
void NextCharacter ()
 
void NextPrevPage (bool next)
 
void NoteMenu ()
 
void OnAttemptSelectPreset (int index)
 
void OnAttemptTabSwitch (int source, int target)
 
override bool OnChange (Widget w, int x, int y, bool finished)
 
override bool OnChange (Widget w, int x, int y, bool finished)
 
override bool OnChange (Widget w, int x, int y, bool finished)
 
void OnChangeCharacter (bool create_character=true)
 
void OnChanged ()
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnClick (Widget w, int x, int y, int button)
 
protected void OnClick_Continue ()
 
protected void OnClick_Exit ()
 
protected void OnClick_Options ()
 
protected void OnClick_Respawn ()
 
protected void OnClick_Restart ()
 
override bool OnController (Widget w, int control, int value)
 
override bool OnController (Widget w, int control, int value)
 
void OnControllerDeselect (Widget w)
 
void OnControllerDeselect (Widget w)
 
void OnControllerExecute (Widget w)
 
void OnControllerPressBack (Widget w)
 
void OnControllerPressBack (Widget w)
 
void OnControllerPressSelect (Widget w)
 
void OnControllerPressSelect (Widget w)
 
void OnControllerSelect (Widget w)
 
void OnControllerSelect (Widget w)
 
void OnControlsChanged (RadialMenuControlType type)
 
void OnControlsChanged (RadialMenuControlType type)
 
override bool OnDoubleClick (Widget w, int x, int y, int button)
 
override bool OnDoubleClick (Widget w, int x, int y, int button)
 
override bool OnFocus (Widget w, int x, int y)
 
override bool OnFocus (Widget w, int x, int y)
 
override bool OnFocus (Widget w, int x, int y)
 
override bool OnFocus (Widget w, int x, int y)
 
override bool OnFocus (Widget w, int x, int y)
 
override bool OnFocus (Widget w, int x, int y)
 
override bool OnFocus (Widget w, int x, int y)
 
override bool OnFocus (Widget w, int x, int y)
 
override bool OnFocus (Widget w, int x, int y)
 
override bool OnFocus (Widget w, int x, int y)
 
override bool OnFocusLost (Widget w, int x, int y)
 
override bool OnFocusLost (Widget w, int x, int y)
 
override bool OnFocusLost (Widget w, int x, int y)
 
override bool OnFocusLost (Widget w, int x, int y)
 
override bool OnFocusLost (Widget w, int x, int y)
 
override bool OnFocusLost (Widget w, int x, int y)
 
override bool OnFocusLost (Widget w, int x, int y)
 
override bool OnFocusLost (Widget w, int x, int y)
 
override bool OnFocusLost (Widget w, int x, int y)
 
override bool OnFocusLost (Widget w, int x, int y)
 
override void OnHide ()
 
override void OnHide ()
 
override void OnHide ()
 
override void OnHide ()
 
override void OnHide ()
 
override void OnHide ()
 
override void OnHide ()
 
override void OnHide ()
 
override void OnHide ()
 
protected void OnInputDeviceChanged (EInputDeviceType pInputDeviceType)
 
protected void OnInputDeviceChanged (EInputDeviceType pInputDeviceType)
 
protected void OnInputDeviceChanged (EInputDeviceType pInputDeviceType)
 
protected void OnInputDeviceChanged (EInputDeviceType pInputDeviceType)
 
protected void OnInputDeviceChanged (EInputDeviceType pInputDeviceType)
 
protected void OnInputDeviceChanged (EInputDeviceType pInputDeviceType)
 
protected void OnInputDeviceChanged (EInputDeviceType pInputDeviceType)
 
protected void OnInputPresetChanged ()
 
protected void OnInputPresetChanged ()
 
protected void OnInputPresetChanged ()
 
protected void OnInputPresetChanged ()
 
protected void OnInputPresetChanged ()
 
protected void OnInputPresetChanged ()
 
protected void OnInputPresetChanged ()
 
protected void OnInputPresetChanged ()
 
protected void OnInputPresetChanged ()
 
override bool OnItemSelected (Widget w, int x, int y, int row, int column, int oldRow, int oldColumn)
 
override bool OnItemSelected (Widget w, int x, int y, int row, int column, int oldRow, int oldColumn)
 
override bool OnItemSelected (Widget w, int x, int y, int row, int column, int oldRow, int oldColumn)
 
override bool OnKeyDown (Widget w, int x, int y, int key)
 
override bool OnKeyDown (Widget w, int x, int y, int key)
 
override bool OnKeyPress (Widget w, int x, int y, int key)
 
override bool OnKeyPress (Widget w, int x, int y, int key)
 
override bool OnKeyPress (Widget w, int x, int y, int key)
 
override bool OnKeyPress (Widget w, int x, int y, int key)
 
void OnLoadServerModsAsync (GetServerModListResult result_list)
 
void OnLoadServersAsync (GetServersResult result_list, EBiosError error, string response)
 
protected void OnMenuRelease ()
 DEPRECATED. More...
 
override bool OnModalResult (Widget w, int x, int y, int code, int result)
 
override bool OnModalResult (Widget w, int x, int y, int code, int result)
 
override bool OnModalResult (Widget w, int x, int y, int code, int result)
 
override bool OnModalResult (Widget w, int x, int y, int code, int result)
 
override bool OnModalResult (Widget w, int x, int y, int code, int result)
 
override bool OnModalResult (Widget w, int x, int y, int code, int result)
 
override bool OnMouseButtonDown (Widget w, int x, int y, int button)
 
override bool OnMouseButtonDown (Widget w, int x, int y, int button)
 
override bool OnMouseButtonDown (Widget w, int x, int y, int button)
 
override bool OnMouseButtonDown (Widget w, int x, int y, int button)
 
override bool OnMouseButtonDown (Widget w, int x, int y, int button)
 
override bool OnMouseButtonUp (Widget w, int x, int y, int button)
 
override bool OnMouseButtonUp (Widget w, int x, int y, int button)
 
override bool OnMouseButtonUp (Widget w, int x, int y, int button)
 
void OnMouseDeselect (Widget w)
 
void OnMouseDeselect (Widget w)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
void OnMouseExecute (Widget w)
 
void OnMouseExecute (Widget w)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
void OnMousePressLeft (Widget w)
 LMB. More...
 
void OnMousePressLeft (Widget w)
 LMB. More...
 
void OnMousePressRight (Widget w)
 RMB. More...
 
void OnMousePressRight (Widget w)
 RMB. More...
 
void OnMouseSelect (Widget w)
 
void OnMouseSelect (Widget w)
 
override bool OnMouseWheel (Widget w, int x, int y, int wheel)
 
override bool OnMouseWheel (Widget w, int x, int y, int wheel)
 
override bool OnMouseWheel (Widget w, int x, int y, int wheel)
 
void OnPermissionsUpdate (BiosPrivacyUidResultArray result_list)
 
override void OnRPCEx (int rpc_type, ParamsReadContext ctx)
 
void OnSelectKBPreset (int index)
 
override void OnShow ()
 
override void OnShow ()
 
override void OnShow ()
 
override void OnShow ()
 
override void OnShow ()
 
override void OnShow ()
 
override void OnShow ()
 
override void OnShow ()
 
override void OnShow ()
 
override void OnShow ()
 
override void OnShow ()
 
override void OnShow ()
 
override void OnShow ()
 
override void OnShow ()
 
void OnTabSeleted (int tabID)
 
void OnTabSwitch ()
 
void OnTabSwitch (int tab)
 
override void OnVisibilityChanged (bool isVisible)
 
void OpenCredits ()
 
void OpenCredits ()
 
void OpenMenuControls ()
 
void OpenMenuCustomizeCharacter ()
 
void OpenMenuCustomizeCharacter ()
 
void OpenMenuOptions ()
 
void OpenMenuPlayVideo ()
 
void OpenMenuServerBrowser ()
 
void OpenMenuServerBrowser ()
 
void OpenMenuTutorials ()
 
void OpenMessages ()
 
void OpenSettings ()
 
void OpenStats ()
 
void OpenTutorials ()
 
void OptionsMenu ()
 
void PerformSetToDefaults ()
 
void PerformSetToDefaults ()
 
protected void PerformSwitchPreset ()
 
void Play ()
 
void Play ()
 
void Play ()
 
void PlayPauseVideo ()
 
void PlayVideo ()
 
void PlayVideoLoop ()
 
UIPopupScript PopupBack ()
 
private void PopupClose (int popup_id)
 
void PopupCloseAll ()
 
private void PopupHideAll ()
 
UIPopupScript PopupOpen (int popup_id, Param param)
 
void PresetsMenu ()
 
void PreviousCharacter ()
 
void PreviousCharacter ()
 
protected void PrimaryAction (Widget w)
 
protected void ProcessDistanceAndUnits (float num, out float dist, out string units)
 
void ProcessEmoteConditionRequest (GestureMenuItem gesture_item)
 
void RadialQuickbarMenu ()
 
void RandomizeCharacter ()
 
void ReadBook (InventoryItem book)
 
override void Refresh ()
 
override void Refresh ()
 
override void Refresh ()
 
override void Refresh ()
 
override void Refresh ()
 
override void Refresh ()
 
override void Refresh ()
 
override void Refresh ()
 
override void Refresh ()
 
protected void RefreshByLocalProfile ()
 
void RefreshDateWidgets (int year, int month, int day, int hour, int minute)
 
protected void RefreshGestures (GestureCategories category_id=-1)
 
void RefreshLists ()
 
void RefreshLists ()
 
void RefreshPlayerPosEditBoxes ()
 
protected void RefreshQuickbar (bool reset_selection=true)
 
void ReloadOptions ()
 
void ReloadVideoOptions ()
 
void RemoveItemFromPreset ()
 
void RemoveItemFromPreset ()
 
void RemoveMarker ()
 
void RenamePreset (string new_preset_name)
 
void RenamePreset (string new_preset_name)
 
void RenderPresetItems ()
 
void RenderPresetItems ()
 
void RenderPresets ()
 
void RenderPresets ()
 
protected void RenderScaleRuler ()
 
void RenderVariables (int row)
 
bool RequestRespawn (bool random)
 
void Reset ()
 Undoes the unsaved changes and reverts to previous state. Does not reset to defaults! More...
 
void Reset ()
 
void ResetCurrentTab ()
 
void ResetRunButtonColor ()
 
void RespawnDialogue ()
 
void RunEnscript ()
 
void RunEnscriptServer ()
 
void Save ()
 saves default character More...
 
void SaveData ()
 
void SaveEvent ()
 
void SaveFavoriteServersConsoles ()
 
void SaveKeyframe ()
 
void SaveProfileSpawnDistance ()
 
void SaveProfileSpawnDistance ()
 
void SceneEditorCommand (Param params)
 
void SceneEditorMenu ()
 
void ScriptConsole ()
 
void ScriptConsoleNewPresetDialog ()
 
void ScriptConsoleRenamePresetDialog ()
 
protected void SecondaryAction (Widget w)
 
void SelectActor (CTActor ac)
 
void SelectEvent (CTEvent ev)
 
void SelectKeyframe (CTKeyframe kf)
 
void SelectNextTab ()
 
void SelectObject (bool hide_presets=true)
 
void SelectPreset ()
 
void SelectPreviousTab ()
 
void SelectServer ()
 
void SelectServer (ServerBrowserEntry server)
 
void SelectTab (int tab_id)
 
void ServerListFocus (bool focus, bool favorite)
 
void SetBlurValue (float blur)
 
float SetCameraData (Param6< vector, vector, float, float, float, int > transform1, Param6< vector, vector, float, float, float, int > transform2)
 
void SetCharacter ()
 
void SetCharacterSaved (bool state)
 
protected void SetCompassUIVisibility (bool pState)
 
void SetDefaultPreset (int preset_index)
 
void SetDefaultPreset (int preset_index)
 
bool SetFavoriteConsoles (string ipAddress, int port, bool favorite)
 
protected void SetGameVersion ()
 
protected void SetGPSDirectionVisibility (bool pState)
 
protected void SetGPSMarkerVisibility (bool pState)
 
void SetItem (EntityAI item)
 
void SetLogoutTime ()
 
void SetMapPos (vector pos)
 
void SetMenuClosing (bool state)
 
void SetMenuClosing (bool state)
 
protected void SetMuteButtonText (bool isMuted)
 Set mute text button text (mute / unmute) More...
 
void SetObject (string object)
 
void SetPosition (int position)
 
void SetPreset (bool clear_inventory, string preset_name)
 spawn preset items into inventory More...
 
void SetPreviewObject (string object)
 
void SetRespawn (bool value)
 
protected bool SetServerInfo ()
 
void SetServerInfoVisibility (bool show)
 
void SetServersLoadingTab (TabType refreshing)
 
void SetStatus (string status)
 
void SetTime (int time)
 
void SetTime (int time)
 
void SetToDefaults ()
 
void SetToDefaults ()
 
void SetTooltipTexts (Widget w, string header="", string desc="")
 
void SetTooltipTexts (Widget w, string header="", string desc="")
 
protected void SetUpperLegendVisibility (bool pState)
 
void ShoesChanged ()
 
void Show ()
 
void Show ()
 
void Show ()
 
void ShowAButton (bool show)
 
void ShowItemButtons ()
 
void ShowItemTransferButtons ()
 
void ShowPresetButtons ()
 
void ShowYButton (bool show)
 
void SkinChanged ()
 
void SliderFocus ()
 
void SpawnPreset (EntityAI target, bool clear_inventory, string preset_name, InventoryLocationType location=InventoryLocationType.ATTACHMENT, float distance=0)
 
void StartEnteringAlternateKeybind (int key_index)
 
void StartEnteringKeybind (int key_index)
 
void StartupMenu ()
 
void Stop ()
 
void StopVideo ()
 
void SyncEvent_OnRecievedPlayerList (SyncPlayerList player_list)
 
void TitleScreenMenu ()
 
void ToggleDependentOptions (int mode, bool state)
 Controls visibility and sometimes even state of specific, dependent options across sub-menus. More...
 
void ToggleFavoriteServer ()
 
void ToggleFocus ()
 
void ToggleVisibility ()
 
void TopChanged ()
 
bool TryConnectLastSession (out string ip, out int port)
 
protected void UnmarkSelected (Widget w)
 
protected void UnmarkSelected (Widget w)
 
override void Update (float timeslice)
 
override void Update (float timeslice)
 
override void Update (float timeslice)
 
override void Update (float timeslice)
 
override void Update (float timeslice)
 
override void Update (float timeslice)
 
override void Update (float timeslice)
 
override void Update (float timeslice)
 
override void Update (float timeslice)
 
override void Update (float timeslice)
 
override void Update (float timeslice)
 
override void Update (float timeslice)
 
override void Update (float timeslice)
 
override void Update (float timeslice)
 
override void Update (float timeslice)
 
override void Update (float timeslice)
 
override void Update (float timeslice)
 
override void Update (float timeslice)
 
override void Update (float timeslice)
 
override void Update (float timeslice)
 
override void Update (float timeslice)
 
override void Update (float timeslice)
 
override void Update (float timeslice)
 
override void Update (float timeslice)
 
protected void UpdateCategoryName (string name)
 
void UpdateChannel ()
 
protected void UpdateControlsElements ()
 
protected void UpdateControlsElements ()
 
protected void UpdateControlsElements ()
 
protected void UpdateControlsElements ()
 
protected void UpdateControlsElements ()
 
protected void UpdateControlsElements ()
 
protected void UpdateControlsElements ()
 
protected void UpdateControlsElements ()
 
protected void UpdateControlsElements ()
 
protected void UpdateGUI ()
 
void UpdateGUI ()
 
void UpdateHudDebugSetting ()
 
void UpdateInfo ()
 
void UpdateInfoPanelText (int input_device_type)
 
protected void UpdateListClasses ()
 
private void UpdateListObjects ()
 
void UpdateMenuFocus ()
 
void UpdateMousePos ()
 
protected void UpdateQuickbarItemCard (GestureMenuItem gesture_item)
 
protected void UpdateQuickbarItemCard (RadialQuickbarItem quickbar_item)
 
void UpdateRotation (int mouse_x, int mouse_y, bool is_dragging)
 
void UpdateScale ()
 
void UpdateTabContent (int tab_index)
 
void UpdateTabContent (int tab_index)
 
void UpdateTime ()
 
void UpdateTime ()
 
void UpdateTime (bool slider_used)
 
protected void UpdateToolbar ()
 DEPRECATED. More...
 
protected void UpdateToolbarText ()
 
override bool UseGamepad ()
 
override bool UseGamepad ()
 
override bool UseKeyboard ()
 
override bool UseKeyboard ()
 
override bool UseMouse ()
 
override bool UseMouse ()
 
override bool UseMouse ()
 
void ViewEvent ()
 
void ViewKeyframe ()
 
void WarningMenuBase ()
 
void ~CameraToolsMenu ()
 
void ~CharacterCreationMenu ()
 
void ~ControlsXboxNew ()
 
void ~EarlyAccessMenu ()
 
void ~GesturesMenu ()
 
void ~HelpScreen ()
 
void ~InGameMenu ()
 
void ~InGameMenuXbox ()
 
void ~InspectMenuNew ()
 
void ~LoadingMenu ()
 
void ~LoginQueueBase ()
 
void ~LoginTimeBase ()
 
void ~LogoutMenu ()
 
void ~MainMenu ()
 
void ~MainMenuVideo ()
 
void ~NoteMenu ()
 
void ~OptionsMenu ()
 
void ~PresetsMenu ()
 
void ~RadialQuickbarMenu ()
 
void ~RespawnDialogue ()
 
void ~SceneEditorMenu ()
 
void ~ScriptConsole ()
 
void ~ScriptConsoleNewPresetDialog ()
 
void ~ScriptConsoleRenamePresetDialog ()
 
void ~ServerBrowserMenuNew ()
 
void ~StartupMenu ()
 
void ~TitleScreenMenu ()
 
void ~TutorialsMenu ()
 
void ~WarningMenuBase ()
 

Static Private Member Functions

static void CloseMenu ()
 
static void CloseMenu ()
 
static void DrawItems (string type, float distance=0)
 
static void DrawItemsClear ()
 
static string GetChannelName (ChatChannel channel)
 
static EntityAI GetItemToAssign ()
 
static string GetLastSelectedObject ()
 
static RadialQuickbarMenu GetMenuInstance ()
 
static void OpenMenu ()
 
static void OpenMenu (UIScriptedMenu parent=NULL)
 
static void PlayAnimOnActor (int actor, int anim)
 
static void SetItemToAssign (EntityAI item)
 
static void UpdateItemInfo (Widget root_widget, EntityAI item)
 
static void UpdateItemInfoCleanness (Widget root_widget, EntityAI item)
 
static void UpdateItemInfoDamage (Widget root_widget, EntityAI item)
 
static void UpdateItemInfoFoodStage (Widget root_widget, EntityAI item)
 
static void UpdateItemInfoLiquidType (Widget root_widget, EntityAI item)
 
static void UpdateItemInfoQuantity (Widget root_widget, EntityAI item)
 
static void UpdateItemInfoTemperature (Widget root_widget, EntityAI item)
 
static void UpdateItemInfoWeight (Widget root_widget, EntityAI item)
 
static void UpdateItemInfoWetness (Widget root_widget, EntityAI item)
 
static void UpdateSlotInfo (Widget root_widget, string name, string desc="")
 
static void WidgetTrySetText (Widget root_widget, string widget_name, string text, int color=0)
 

Private Attributes

protected const int AREA_LEFT = 1
 
protected const int AREA_RIGHT = 2
 
const int BUTTON_XBOX_CONTROLS = 201
 
const string CATEGORY_NAME = "CategoryName"
 
const string CONST_DEFAULT_PRESET_PREFIX = "[Default]"
 
protected const string COORD_FORMAT = "%1.%2%3"
 
const string DEFAULT_POS_XYZ = "<1,2,3>"
 
const int DIALOG_TAB_OFFSET = 1400
 
const string GESTURE_TEXT = "GestureNameText"
 
const int ID_RESPAWN_CUSTOM = 101
 
const int ID_RESPAWN_RANDOM = 102
 
const string INPUT_TEXT = "InputActionText"
 
protected int m_ActiveTabIdx = 0
 
protected EditBoxWidget m_ActorIdWidget
 
protected EditBoxWidget m_ActorItemTypeWidget
 
protected ref array< ref CTActor > m_Actors
 
protected EditBoxWidget m_ActorTypeWidget
 
protected ButtonWidget m_AddActor
 
protected ButtonWidget m_AddEvent
 
protected ButtonWidget m_AddHandsItem
 
protected ButtonWidget m_AddItem
 
protected ButtonWidget m_AddKeyframe
 
protected Widget m_Apply
 
protected ButtonWidget m_Apply
 
protected ButtonWidget m_ApplyButton
 
protected ref map< int, ref TButtonPairingInfom_AreasLR
 
protected TextWidget m_author
 
protected ButtonWidget m_Back
 
protected Widget m_Back
 
protected Widget m_BackButton
 
protected string m_BackButtonTextID
 
ref TStringArray m_BaseConfigClasses = new TStringArray
 
ref TStringArray m_BaseConfigClassesToggled = new TStringArray
 
EditBoxWidget m_BatchSpawnQuantity
 
private ButtonWidget m_bCancel
 
private ButtonWidget m_bCancelConsole
 
private ButtonWidget m_bLogoutNow
 
protected EditBoxWidget m_BlurEditWidget
 
protected ref OptionSelectorMultistateCharacterMenu m_BottomSelector
 
protected ButtonWidget m_btnLeave
 
ButtonWidget m_ButtonCopyPos
 
Widget m_ButtonsWindowWidget
 
protected Camera m_Camera1
 
protected Camera m_Camera2
 
protected EditBoxWidget m_CameraEditbox
 
protected ref array< ref Param6< vector, vector, float, float, float, int > > m_CameraLines
 
protected ref array< ref CTKeyframe > m_Cameras
 
protected TextWidget m_CameraValues
 
protected bool m_CanApplyOrReset
 
protected bool m_CanToggle
 
protected CanvasWidget m_CanvasWidget
 
ref array< stringm_CategoryButtonsNames = {"FIREARMS","MELEE","ATTACHMENTS","MAGAZINES","AMMO","FOOD","MEDICAL","CARS","BACKPACKS"}
 
ref array< Widgetm_CategoryButtonsWidgets = new array<Widget>
 
int m_CategoryMask
 
CheckBoxWidget m_CategoryMergeType
 
protected TextWidget m_CategoryNameText
 
protected ref map< int, Widgetm_CategoryStructure
 
protected Widget m_ChangeAccount
 
private TextWidget m_channel_text
 
protected TextWidget m_CharacterHeaderText
 
private vector m_characterOrientation
 
protected Widget m_CharacterRotationFrame
 
private int m_characterRotationX
 
private int m_characterRotationY
 
private int m_characterScaleDelta
 
protected Widget m_ChooseServer
 
protected ref map< CheckBoxWidget, intm_ClassCheckboxes = new map<CheckBoxWidget, int>
 
protected ref TStringArray m_ClClassesList
 
CheckBoxWidget m_ClearInventory
 
ButtonWidget m_ClientLogClearButton
 
TextListboxWidget m_ClientLogListbox
 
CheckBoxWidget m_ClientLogScrollCheckbox
 
private ref Timer m_close_timer
 
ButtonWidget m_CloseConsoleButton
 
protected string m_ClSelectedClass
 
protected ButtonWidget m_ClWgtButtonAddAtt
 
protected EditBoxWidget m_ClWgtEbxFilter
 
protected TextListboxWidget m_ClWgtLbxClassesList
 
protected ref ServerBrowserTab m_CommunityTab
 
protected PluginConfigDebugProfile m_ConfigDebugProfile
 
PluginConfigDebugProfile m_ConfigDebugProfile
 
protected PluginConfigDebugProfileFixed m_ConfigDebugProfileFixed
 
PluginConfigDebugProfileFixed m_ConfigDebugProfileFixed
 
TextListboxWidget m_ConfigHierarchyTextListbox
 
protected EditBoxWidget m_ConfigsButton
 
TextListboxWidget m_ConfigVariablesTextListbox
 
protected ButtonWidget m_confirm_button
 
protected HtmlWidget m_content
 
protected WrapSpacerWidget m_Content
 
protected float m_content_pos
 
protected float m_content_total_height
 
protected Widget m_ContinueButton
 
protected ButtonWidget m_ContinueButton
 
protected Widget m_Controls
 
protected ButtonWidget m_ControlsButton
 
protected Widget m_ControlsImage
 
protected ImageWidget m_ControlsLayoutImage
 
protected ref OptionsMenuControls m_ControlsTab
 
protected ButtonWidget m_CopyButton
 
protected Widget m_CopyInfoButton
 
ButtonWidget m_CopySoundset
 
protected ButtonWidget m_CopyToClipboardButton
 
protected ref JsonDataCredits m_CreditsData
 
protected ref array< ref CreditsElementm_CreditsEntries = new array<ref CreditsElement>
 
protected int m_CurrentCategory
 
protected Widget m_CurrentlyHighlighted
 
protected int m_CurrentPresetVariant = -1
 
protected int m_CurrentSettingAlternateKeyIndex = -1
 
protected int m_CurrentSettingKeyIndex = -1
 
protected int m_CurrentTabIdx = -1
 
protected float m_CurrentTime = 0.0
 
protected Widget m_CustomizeCharacter
 
protected EditBoxWidget m_DamageEditBox
 
EditBoxWidget m_DamageEditBox
 
EditBoxWidget m_DateDay
 
EditBoxWidget m_DateHour
 
EditBoxWidget m_DateMinute
 
EditBoxWidget m_DateMonth
 
EditBoxWidget m_DateYear
 
MapWidget m_DebugMapWidget
 
protected ButtonWidget m_Defaults
 
protected ButtonWidget m_DeleteEvent
 
protected ButtonWidget m_DeleteKeyframe
 
private TextWidget m_DescriptionText
 
protected Widget m_Details
 
protected TextWidget m_DetailsLabel
 
protected Widget m_DetailsRoot
 
protected RichTextWidget m_DetailsText
 
protected PluginDeveloper m_Developer
 
PluginDeveloper m_Developer
 
ButtonWidget m_DiagDrawButton
 
TextListboxWidget m_DiagDrawmodeTextListbox
 
ButtonWidget m_DiagToggleButton
 
TextListboxWidget m_DiagToggleTextListbox
 
protected ButtonWidget m_DownButton
 
EditBoxWidget m_DrawDistanceWidget
 
ButtonWidget m_DrawInWorld
 
ButtonWidget m_DrawInWorldClear
 
protected MultilineEditBoxWidget m_edit
 
private EditBoxWidget m_edit_box
 
EditBoxWidget m_Editbox
 
MultilineEditBoxWidget m_EnfScriptEdit
 
ButtonWidget m_EnfScriptRun
 
ref TStringArray m_EnscriptConsoleHistory
 
ref TStringArray m_EnscriptConsoleHistoryServer
 
int m_EnscriptHistoryRow
 
int m_EnscriptHistoryRowServer
 
protected Widget m_EventContent
 
protected ref array< ref CTEvent > m_Events
 
protected Widget m_Exit
 
protected Widget m_ExitButton
 
protected ButtonWidget m_ExitButton
 
protected Widget m_FavoriteButton
 
protected Widget m_FavoriteImage
 
protected ref TStringArray m_Favorites
 
protected ref ServerBrowserTab m_FavoritesTab
 
protected ref Param2< int, intm_FollowingBone
 
protected float m_FollowingTimeFinished
 
vector m_FreeflightCamTransform [4]
 
protected ref OptionsMenuGame m_GameTab
 
protected ref OptionSelectorMultistateCharacterMenu m_GenderSelector
 
protected Widget m_GestureItemCardPanel
 
protected ref array< ref GestureMenuItemm_GestureItems
 
protected Widget m_GPSMarker
 
protected ImageWidget m_GPSMarkerArrow
 
protected ref KeybindingsContainer m_GroupsContainer
 
TextListboxWidget m_HelpTextListboxWidget
 
protected ref UiHintPanel m_HintPanel
 
protected HtmlWidget m_html
 
protected ref IngameHud m_Hud
 
CheckBoxWidget m_HudDCharAgents
 
CheckBoxWidget m_HudDCharDebug
 
CheckBoxWidget m_HudDCharLevels
 
CheckBoxWidget m_HudDCharModifiers
 
CheckBoxWidget m_HudDCharStats
 
CheckBoxWidget m_HudDCharStomach
 
CheckBoxWidget m_HudDFreeCamCross
 
CheckBoxWidget m_HudDTemperature
 
CheckBoxWidget m_HudDVersion
 
ImageWidget m_image
 
protected ref map< int, Widgetm_ImageMarkerStructure
 
protected ImageWidget m_Images
 
private TextWidget m_Info
 
protected Widget m_InfoPanel
 
protected RichTextWidget m_InfoPanelText
 
protected Widget m_InfoTextLeft
 
protected Widget m_InfoTextRight
 
protected XComboBoxWidget m_InterpTypeCombo
 
protected XComboBoxWidget m_InterpTypeSpeedCombo
 
protected int m_iPosition
 
protected bool m_IsCategorySelected
 
protected bool m_IsMenuClosing
 
protected bool m_HasCompass protected bool m_HasGPS protected bool m_IsOpenning
 
bool m_IsPaused
 
protected bool m_IsPlaying
 
protected TabType m_IsRefreshing = TabType.NONE
 
protected bool m_IsRespawn
 
protected bool m_IsStatic
 
protected bool m_IsWriting
 
private ItemPreviewWidget m_item_widget
 
protected Widget m_ItemCardPanel
 
TextWidget m_ItemDamageLabel
 
PluginItemDiagnostic m_ItemDisagPlugin
 
ButtonWidget m_ItemMoveDownButton
 
ButtonWidget m_ItemMoveUpButton
 
ButtonWidget m_ItemNameCopy
 
CheckBoxWidget m_ItemPreviewCheckbox
 
ItemPreviewWidget m_ItemPreviewWidget
 
TextWidget m_ItemQuantityLabel
 
protected ref array< ref RadialQuickbarItemm_Items
 
private int m_iTime
 
protected ref DropdownPrefab m_KBDropdown
 
TextListboxWidget m_KeyBindingsTextListboxWidget
 
protected ref TutorialKeybinds m_KeybindsTab
 
protected Widget m_KeyframeContent
 
TextWidget m_label
 
TextWidget m_Label
 
protected ref ServerBrowserTab m_LANTab
 
protected ref Widget m_LastFocusedButton
 
protected Widget m_LastPlayedTooltip
 
protected TextWidget m_LastPlayedTooltipIP
 
protected Widget m_LastPlayedTooltipLabel
 
protected TextWidget m_LastPlayedTooltipName
 
protected TextWidget m_LastPlayedTooltipPort
 
protected ref WidgetFadeTimer m_LastPlayedTooltipTimer
 
ref Timer m_LateInit = new Timer()
 
protected ref SizeToChild m_LegendResizer
 
protected ButtonWidget m_Load
 
protected ImageWidget m_Logo
 
protected float m_LogoFadeInIncrement
 
protected float m_LogoFadeInLevel
 
private TextWidget m_LogoutTimetext
 
private TextWidget m_LogoutTimeText
 
CheckBoxWidget m_LogsEnabled
 
protected ItemMap m_Map
 
protected ref MapHandler m_MapMenuHandler
 
protected ref MapNavigationBehaviour m_MapNavigationBehaviour
 
vector m_MapPos
 
protected ref MapWidget m_MapWidgetInstance
 
protected float m_MenuFadeInIncrement
 
protected float m_MenuFadeInLevel
 
protected float m_MenuFadeInLevel2 = 1
 
TextWidget m_Message
 
protected Widget m_MessageButton
 
protected MissionMainMenu m_Mission
 
MissionGameplay m_MissionGameplay
 
protected bool m_ModalLock
 
protected ref TextWidget m_ModdedWarning
 
protected ref ModsMenuDetailed m_ModsDetailed
 
protected ref ModsMenuSimple m_ModsSimple
 
protected ref ModsMenuTooltip m_ModsTooltip
 
PluginConfigViewer m_ModuleConfigViewer
 
PluginLocalEnscriptHistory m_ModuleLocalEnscriptHistory
 
PluginLocalEnscriptHistoryServer m_ModuleLocalEnscriptHistoryServer
 
protected PluginSceneManager m_ModuleSceneManager
 
TextListboxWidget m_MouseBindingsTextListboxWidget
 
TextWidget m_MouseCurPos
 
protected string m_MuteButtonTextID
 
protected ref OptionSelectorEditbox m_NameSelector
 
protected Widget m_NewsMain
 
protected Widget m_NewsSec1
 
protected Widget m_NewsSec2
 
protected int m_NextCameraIndex = 1
 
protected vector m_NextCamPosition
 
protected Widget m_NextCharacter
 
protected ref WidgetFadeTimer m_NotifyFadeTimer
 
protected Widget m_NotifyWgtPanel
 
EditBoxWidget m_ObjectConfigFilter
 
EditBoxWidget m_ObjectFilter
 
TextListboxWidget m_ObjectsTextListbox
 
protected ref ServerBrowserTab m_OfficialTab
 
protected ButtonWidget m_OnlineButton
 
protected Widget m_OnlineMenu
 
protected Widget m_OpenDLC
 
protected ref TIntArray m_OpenedPopups
 
protected string m_OpenGameCardButtonTextID
 
protected Widget m_Options
 
protected ref GameOptions m_Options
 
protected Widget m_OptionsButton
 
protected ButtonWidget m_OptionsButton
 
int m_OriginalCharacterID
 
protected int m_OriginalPresetIndex
 
protected TextWidget m_page
 
protected float m_page_height
 
protected ItemBase m_Paper
 
protected EntityAI m_Pen
 
protected string m_PenColor
 
protected Widget m_PlatformHolder
 
protected ButtonWidget m_Play
 
protected Widget m_Play
 
protected Widget m_PlayedCharacterInfo
 
protected bool m_PlayerAlive
 
TextWidget m_PlayerCurPos
 
ref array< ref RemotePlayerStatDebugm_PlayerDebugStats = new array<ref RemotePlayerStatDebug>
 
TextWidget m_PlayerMouseDiff
 
protected TextWidget m_PlayerName
 
bool m_PlayerPosRefreshBlocked
 
protected TextWidget m_PlayPauseText
 
ButtonWidget m_PlaySoundset
 
ButtonWidget m_PlaySoundsetButton
 
ButtonWidget m_PlaySoundsetLooped
 
protected Widget m_PlayVideo
 
protected ref map< int, ref UIPopupScriptm_Popups
 
protected UIPopupScriptPositionManager m_PopupScriptPositionManager
 
TextListboxWidget m_PositionsListbox
 
protected ButtonWidget m_PresetAddItemtButton
 
ButtonWidget m_PresetAddItemtButton
 
protected ButtonWidget m_PresetDeleteButton
 
ButtonWidget m_PresetDeleteButton
 
protected TextListboxWidget m_PresetItemsTextListbox
 
TextListboxWidget m_PresetItemsTextListbox
 
protected ButtonWidget m_PresetNewButton
 
ButtonWidget m_PresetNewButton
 
protected ButtonWidget m_PresetRemoveItemButton
 
ButtonWidget m_PresetRemoveItemButton
 
protected ButtonWidget m_PresetRenameButton
 
ButtonWidget m_PresetRenameButton
 
protected ref OptionSelectorMultistate m_PresetSelector
 
protected ButtonWidget m_PresetSetDefaultButton
 
ButtonWidget m_PresetSetDefaultButton
 
protected TextListboxWidget m_PresetsTextListbox
 
TextListboxWidget m_PresetsTextListbox
 
protected Widget m_PrevCharacter
 
ProgressBarWidget m_progressBar
 
protected Widget m_PrWgtAttRoot
 
protected Widget m_PrWgtAttTitle
 
protected TextWidget m_PrWgtClassName
 
protected EditBoxWidget m_PrWgtDir
 
protected EditBoxWidget m_PrWgtDmg
 
protected EditBoxWidget m_PrWgtPoxX
 
protected EditBoxWidget m_PrWgtPoxY
 
protected EditBoxWidget m_PrWgtPoxZ
 
protected ref array< ref UIPropertyAttachmentm_PrWidgetsAttachments
 
protected EditBoxWidget m_QuantityEditBox
 
EditBoxWidget m_QuantityEditBox
 
protected Widget m_RandomizeCharacter
 
EditBoxWidget m_RectSpawnColumn
 
EditBoxWidget m_RectSpawnColumnStep
 
EditBoxWidget m_RectSpawnRow
 
EditBoxWidget m_RectSpawnRowStep
 
ref Timer m_RefreshFilterTimer = new Timer()
 
protected ButtonWidget m_Reset
 
protected Widget m_RespawnButton
 
protected Widget m_RestartButton
 
protected ButtonWidget m_RestartButton
 
protected ButtonWidget m_RestartDeadButton
 
protected Widget m_RestartDeadCustomButton
 
protected Widget m_RestartDeadRandomButton
 
int m_Rows
 
int m_RunColor
 
protected ButtonWidget m_Save
 
protected Widget m_Save
 
protected ButtonWidget m_SaveEvent
 
protected ButtonWidget m_SaveKeyframe
 
DayZIntroScenePC m_Scene
 
protected DayZIntroScenePC m_ScenePC
 
private TextListboxWidget m_schemes_list
 
bool m_ScriptServer
 
protected ScrollWidget m_Scroller
 
protected float m_ScrollIncrement
 
protected float m_ScrollLevel
 
protected float m_ScrollMax
 
protected float m_ScrollSize
 
protected string m_SelectButtonTextID
 
int m_selected_tab
 
protected CTActor m_SelectedActor
 
protected CTEvent m_SelectedEvent
 
protected Widget m_SelectedItem
 
protected CTKeyframe m_SelectedKeyframe
 
protected string m_SelectedObject
 
string m_SelectedObject
 
protected bool m_SelectedObjectIsPreset
 
TextWidget m_SelectedObjectText
 
ButtonWidget m_SelectedRowCopy
 
protected ServerBrowserEntry m_SelectedServer
 
protected Widget m_ServerInfoPanel
 
protected ref PlayerListScriptedWidget m_ServerInfoPanel
 
string m_ServerInfoText
 
protected ref TextWidget m_ServerIP
 
protected ref TextWidget m_ServerName
 
protected ref TextWidget m_ServerPort
 
int m_ServerRows
 
protected ref array< intm_SetKeybinds
 
protected Widget m_SettingsButton
 
protected ref OptionSelectorMultistateCharacterMenu m_ShoesSelector
 
CheckBoxWidget m_ShowOthers
 
CheckBoxWidget m_ShowProtected
 
protected ref OptionSelectorMultistateCharacterMenu m_SkinSelector
 
protected ref map< int, SceneObjectm_SlObjectsList
 
private ItemPreviewWidget m_slot_widget
 
protected string m_SlSelectedClass
 
protected EditBoxWidget m_SlWgtEbxFilter
 
protected ButtonWidget m_SlWgtFocus
 
protected TextListboxWidget m_SlWgtLbxObjectsList
 
protected TextWidget m_SlWgtLoadedScene
 
protected ButtonWidget m_SlWgtSelect
 
EditBoxWidget m_SoundFilter
 
protected ref OptionsMenuSounds m_SoundsTab
 
TextListboxWidget m_SoundsTextListbox
 
ButtonWidget m_SpawnAsAttachment
 
protected ButtonWidget m_SpawnAsAttachmentButton
 
ButtonWidget m_SpawnBatchButton
 
protected EditBoxWidget m_SpawnDistanceEditBox
 
EditBoxWidget m_SpawnDistanceEditBox
 
ButtonWidget m_SpawnGroundButton
 
ButtonWidget m_SpawnGroundPatternGrid
 
ButtonWidget m_SpawnInInvButton
 
protected ButtonWidget m_SpawnInInventoryButton
 
protected ButtonWidget m_SpawnOnGroundButton
 
ButtonWidget m_SpawnSpecial
 
protected ref MainMenuStats m_Stats
 
protected ButtonWidget m_Stop
 
ButtonWidget m_StopSoundset
 
protected int m_SymbolCount
 
ButtonWidget m_Tab_buttons [TABS_COUNT]
 
protected ImageWidget m_tab_images [TABS_COUNT]
 
protected TabberUI m_Tabber
 
protected Widget m_TabberWidget
 
protected ref array< ref KeybindingsGroup > m_Tabs
 
Widget m_Tabs [TABS_COUNT]
 
protected TabberUI m_TabScript
 
protected int m_TargetPresetIndex
 
ButtonWidget m_TeleportButton
 
EditBoxWidget m_TeleportX
 
EditBoxWidget m_TeleportXYZ
 
EditBoxWidget m_TeleportY
 
RichTextWidget m_TextPress
 
protected float m_Time
 
SliderWidget m_TimeSlider
 
protected TextWidget m_title
 
protected Widget m_ToolbarPanel
 
protected float m_ToolScaleCellSizeCanvasWidth
 
protected ImageWidget m_ToolsCompassArrow
 
protected TextWidget m_ToolsCompassAzimuth
 
protected Widget m_ToolsCompassBase
 
protected TextWidget m_ToolsGPSElevationText
 
protected TextWidget m_ToolsGPSXText
 
protected TextWidget m_ToolsGPSYText
 
protected CanvasWidget m_ToolsScaleCellSizeCanvas
 
protected TextWidget m_ToolsScaleCellSizeText
 
protected TextWidget m_ToolsScaleContourText
 
protected ref OptionSelectorMultistateCharacterMenu m_TopSelector
 
protected Widget m_TutorialButton
 
protected Widget m_Tutorials
 
protected ButtonWidget m_TutorialsButton
 
protected TextWidget m_txtDescription
 
protected TextWidget m_txtLabel
 
protected TextWidget m_txtNote
 
protected TextWidget m_txtPosition
 
protected ButtonWidget m_Undo
 
protected Widget m_UnfavoriteImage
 
protected string m_UnmuteButtonTextID
 
protected ButtonWidget m_UpButton
 
bool m_UpdateMap
 
protected Widget m_UpperLegendContainer
 
protected Widget m_VariantWidget
 
protected TextWidget m_Version
 
ref array< Objectm_VicinityItems = new array<Object>
 
TextListboxWidget m_VicinityListbox
 
protected ref MainMenuVideo m_Video
 
protected VideoWidget m_Video
 
protected ref WidgetFadeTimer m_VideoFadeTimer
 
protected ref Timer m_VideoPlayTimer
 
protected ref OptionsMenuVideo m_VideoTab
 
protected ButtonWidget m_ViewEvent
 
protected ButtonWidget m_ViewKeyframe
 
protected bool m_WasChanged
 
ButtonWidget m_WatchItem
 
protected ButtonWidget m_WgtBtnDeleteRuler
 
protected ButtonWidget m_WgtBtnEditInitScript
 
protected ButtonWidget m_WgtBtnEditorSettings
 
protected ButtonWidget m_WgtBtnLeftPresets
 
protected ButtonWidget m_WgtBtnPositionManager
 
protected ButtonWidget m_WgtBtnSceneManager
 
protected ButtonWidget m_WgtBtnSceneSave
 
protected ButtonWidget m_WgtBtnSceneSettings
 
Widget m_WgtClassesConfig
 
protected Widget m_WgtPnlWrapper
 
protected Widget m_WgtPopupsBg
 
protected Widget m_WgtPopupsMain
 
protected Widget m_WgtRoot
 
const int MODAL_ID_BACK = 1337
 
const int MODAL_ID_DEFAULT = 100
 
const int MODAL_ID_PRESET_CHANGE = 200
 
protected const string PATH_MOUSEKEY = "Scripts/data/PageDataTutorials.json"
 
protected const string PATH_PS_NEW = "PS4/PageDataTutorialsAlternate.json"
 
protected const string PATH_PS_OLD = "PS4/PageDataTutorials.json"
 
protected const string PATH_X1_NEW = "Xbox/PageDataTutorialsAlternate.json"
 
protected const string PATH_X1_OLD = "Xbox/PageDataTutorials.json"
 
protected const int PLATFORM_ADJUST_PS = 2000
 
protected const int PLATFORM_ADJUST_X1 = 1000
 
const string RADIAL_TEXT = "RadialText"
 
protected const int SCALE_RULER_LINE_WIDTH = 8
 
protected const int SCALE_RULER_NUM_SEGMENTS = 10
 
protected const int TABS_COUNT = 4
 
const string TEXT_ITEM_NAME = "ItemName"
 
const string TEXT_ITEM_TITLE = "ItemTitle"
 
const int TOOLTIP_ID_APPLY = 2
 
const int TOOLTIP_ID_SAVE = 1
 

Static Private Attributes

static bool CLEAR_IVN
 
static protected float CREDIT_SCROLL_SPEED = 200.0
 
static float DEBUG_MAP_ZOOM = 1
 
static float DRAW_DISTANCE = 1000
 
static GesturesMenu instance
 
static RadialQuickbarMenu instance
 
static int ITEMS_IN_PRESET_SELECTED_ROW
 
static int ITEMS_SELECTED_ROW = -1
 
static protected float LOGO_FADEIN_TIME = 1.0
 
static ref ConfigParamsEx m_ConfigData
 
static ref array< Shapem_DebugShapes = new array<Shape>
 
static protected CameraToolsMenu m_Instance
 
static EntityAI m_ItemToAssign
 
static string m_LastSelectedObject
 
static int m_ObjectsScope = 2
 
static EntityAI m_PreviewEntity
 
static int m_SelectedObjectIsPreset = -1
 
static EffectSound m_SoundSet
 
static protected float MENU_FADEIN_TIME = 2.0
 
static const int POPUP_ID_CONFIGS = 11
 
static const int POPUP_ID_EDITOR_SETTINGS = 6
 
static const int POPUP_ID_INIT_SCRIPT = 7
 
static const int POPUP_ID_NOTIFY = 5
 
static const int POPUP_ID_POSITION_MANAGER = 8
 
static const int POPUP_ID_PRESET_NEW = 9
 
static const int POPUP_ID_PRESET_RENAME = 10
 
static const int POPUP_ID_SCENE_DELETE = 4
 
static const int POPUP_ID_SCENE_MANAGER = 0
 
static const int POPUP_ID_SCENE_NEW = 2
 
static const int POPUP_ID_SCENE_RENAME = 3
 
static const int POPUP_ID_SCENE_SETTINGS = 1
 
static int PRESETS_SELECTED_ROW = 0
 
static bool SHOW_OTHERS = 0
 
static const int TAB_CONFIGS = 2
 
static const int TAB_ENSCRIPT = 3
 
static const int TAB_ENSCRIPT_SERVER = 4
 
static const int TAB_ITEMS = 1
 
static const int TABS_COUNT = 8
 
static const int TABS_GENERAL = 0
 
static const int TABS_OUTPUT = 5
 
static const int TABS_SOUNDS = 7
 
static const int TABS_VICINITY = 6
 

Detailed Description

Xbox menu

Definition at line 20 of file dayzgame.c.

Constructor & Destructor Documentation

◆ ~LoginQueueBase()

void UIScriptedMenu::~LoginQueueBase ( )
inlineprivate

Definition at line 36 of file dayzgame.c.

37 {
38 g_Game.SetKeyboardHandle(NULL);
39 }
DayZGame g_Game
Definition: dayzgame.c:3144

References g_Game.

◆ ~LoginTimeBase()

void UIScriptedMenu::~LoginTimeBase ( )
inlineprivate

Definition at line 152 of file dayzgame.c.

153 {
154 g_Game.SetKeyboardHandle(NULL);
155 }

References g_Game.

◆ ~CameraToolsMenu()

void UIScriptedMenu::~CameraToolsMenu ( )
inlineprivate

Definition at line 73 of file cameratoolsmenu.c.

74 {
75 m_Camera1.SetActive( false );
76 m_Camera2.SetActive( false );
77
78 //GetGame().ObjectDelete( m_Camera1 );
79 //GetGame().ObjectDelete( m_Camera2 );
80
82
83 MissionGameplay ms = MissionGameplay.Cast( GetGame().GetMission() );
84 if (ms)
85 ms.GetHud().Show( true );
86 }
static void DisableFreeCamera(PlayerBase player, bool teleport_player=false)
protected Camera m_Camera1
protected Camera m_Camera2
proto native CGame GetGame()
PlayerBase GetPlayer()
Definition: modifierbase.c:47

References DeveloperFreeCamera::DisableFreeCamera(), GetGame(), and GetPlayer().

◆ ~ControlsXboxNew()

void UIScriptedMenu::~ControlsXboxNew ( )
inlineprivate

Definition at line 57 of file controlsxboxnew.c.

58 {
59 PPERequesterBank.GetRequester(PPERequesterBank.REQ_MENUEFFECTS).Stop();
60 }

◆ ~EarlyAccessMenu()

void UIScriptedMenu::~EarlyAccessMenu ( )
inlineprivate

Definition at line 7 of file earlyaccessmenu.c.

8 {
9 }

◆ ~GesturesMenu()

void UIScriptedMenu::~GesturesMenu ( )
inlineprivate

Definition at line 143 of file gesturesmenu.c.

144 {
145 if (GetGame() && GetGame().GetMission())
146 {
147 GetGame().GetMission().RemoveActiveInputExcludes({"radialmenu"},false);
148 }
149 }
proto native Mission GetMission()
void RemoveActiveInputExcludes(array< string > excludes, bool bForceSupress=false)
deprecated

References GetGame(), CGame::GetMission(), and Mission::RemoveActiveInputExcludes().

◆ ~HelpScreen()

void UIScriptedMenu::~HelpScreen ( )
inlineprivate

Definition at line 13 of file helpscreen.c.

14 {
15 }

◆ ~InGameMenu()

void UIScriptedMenu::~InGameMenu ( )
inlineprivate

Definition at line 25 of file ingamemenu.c.

26 {
27 HudShow(true);
28 }
protected void HudShow(bool show)
Definition: ingamemenu.c:130

References HudShow().

◆ ~InGameMenuXbox()

void UIScriptedMenu::~InGameMenuXbox ( )
inlineprivate

Definition at line 37 of file ingamemenuxbox.c.

38 {
41
43 if ( mission )
44 {
45 IngameHud hud = IngameHud.Cast( mission.GetHud() );
46 if ( hud )
47 {
48 hud.ShowHudUI(true);
49 hud.ShowQuickbarUI(true);
50 }
51 }
52 PPERequesterBank.GetRequester(PPERequester_MenuEffects).Stop();
53 }
static ref ScriptInvoker SyncEvent_OnPlayerListUpdate
Definition: clientdata.c:3
Mission class.
Definition: gameplay.c:661
Hud GetHud()
Definition: gameplay.c:686
static ref ScriptInvoker m_PermissionsAsyncInvoker
Definition: onlineservices.c:4
proto void Remove(func fn)
remove specific call from list
void SyncEvent_OnRecievedPlayerList(SyncPlayerList player_list)
void OnPermissionsUpdate(BiosPrivacyUidResultArray result_list)
Mission mission
Definition: displaystatus.c:28

References GetGame(), Mission::GetHud(), CGame::GetMission(), OnlineServices::m_PermissionsAsyncInvoker, mission, ScriptInvoker::Remove(), and ClientData::SyncEvent_OnPlayerListUpdate.

◆ ~InspectMenuNew()

void UIScriptedMenu::~InspectMenuNew ( )
inlineprivate

Definition at line 18 of file inspectmenunew.c.

19 {
20 GetGame().GetDragQueue().RemoveCalls(this);
21 if (GetGame().GetMission())
22 {
23 GetGame().GetMission().GetHud().ShowHudUI( true );
25 }
26 }
DragQueue GetDragQueue()
Definition: game.c:1333
void ShowHudUI(bool show)
void ShowQuickbarUI(bool show)

References CGame::GetDragQueue(), GetGame(), Mission::GetHud(), CGame::GetMission(), Hud::ShowHudUI(), and Hud::ShowQuickbarUI().

◆ ~WarningMenuBase()

void UIScriptedMenu::~WarningMenuBase ( )
inlineprivate

Definition at line 8 of file itemdropwarningmenu.c.

9 {
10 if ( GetGame() && GetGame().GetMission() )
12 }

References GetGame(), CGame::GetMission(), and Mission::RemoveActiveInputExcludes().

◆ ~LoadingMenu()

void UIScriptedMenu::~LoadingMenu ( )
inlineprivate

Definition at line 7 of file loadingmenu.c.

8 {
9 }

◆ ~LogoutMenu()

void UIScriptedMenu::~LogoutMenu ( )
inlineprivate

Definition at line 17 of file logoutmenu.c.

18 {
19 g_Game.SetKeyboardHandle(NULL);
20 }

References g_Game.

◆ ~CharacterCreationMenu()

void UIScriptedMenu::~CharacterCreationMenu ( )
inlineprivate

Definition at line 179 of file charactercreationmenu.c.

180 {
181 m_GenderSelector.m_OptionChanged.Remove( GenderChanged );
182 m_SkinSelector.m_OptionChanged.Remove( SkinChanged );
183 m_TopSelector.m_OptionChanged.Remove( TopChanged );
184 m_BottomSelector.m_OptionChanged.Remove( BottomChanged );
185 m_ShoesSelector.m_OptionChanged.Remove( ShoesChanged );
186 }
protected ref OptionSelectorMultistateCharacterMenu m_BottomSelector
protected ref OptionSelectorMultistateCharacterMenu m_GenderSelector
protected ref OptionSelectorMultistateCharacterMenu m_ShoesSelector
protected ref OptionSelectorMultistateCharacterMenu m_TopSelector
protected ref OptionSelectorMultistateCharacterMenu m_SkinSelector

◆ ~MainMenu()

void UIScriptedMenu::~MainMenu ( )
inlineprivate

Definition at line 109 of file mainmenu.c.

110 {
111
112 }

◆ ~MainMenuVideo()

void UIScriptedMenu::~MainMenuVideo ( )
inlineprivate

Definition at line 37 of file mainmenuvideo.c.

38 {
39 }

◆ ~TutorialsMenu()

void UIScriptedMenu::~TutorialsMenu ( )
inlineprivate

Definition at line 68 of file tutorialsmenu.c.

69 {
70 m_TabScript.m_OnTabSwitch.Remove( DrawConnectingLines );
71 PPERequesterBank.GetRequester(PPERequester_TutorialMenu).Stop();
72 }
protected void DrawConnectingLines(int index)
protected TabberUI m_TabScript

References DrawConnectingLines(), and m_TabScript.

◆ ~OptionsMenu()

void UIScriptedMenu::~OptionsMenu ( )
inlineprivate

Definition at line 96 of file optionsmenu.c.

97 {
98 }

◆ ~ServerBrowserMenuNew()

void UIScriptedMenu::~ServerBrowserMenuNew ( )
inlineprivate

Definition at line 101 of file serverbrowsermenunew.c.

102 {
103 #ifdef PLATFORM_CONSOLE
105 #endif
106
109 m_Tabber.m_OnTabSwitch.Remove(OnTabSwitch);
110 PPERequesterBank.GetRequester(PPERequester_ServerBrowserBlur).Stop();
111 }
static ref ScriptInvoker m_ServersAsyncInvoker
Definition: onlineservices.c:5
static ref ScriptInvoker m_ServerModLoadAsyncInvoker
Definition: onlineservices.c:8
void OnLoadServerModsAsync(GetServerModListResult result_list)
void OnLoadServersAsync(GetServersResult result_list, EBiosError error, string response)
protected TabberUI m_Tabber
void SaveFavoriteServersConsoles()

References OnlineServices::m_ServerModLoadAsyncInvoker, OnlineServices::m_ServersAsyncInvoker, OnLoadServerModsAsync(), ScriptInvoker::Remove(), and SaveFavoriteServersConsoles().

◆ ~NoteMenu()

void UIScriptedMenu::~NoteMenu ( )
inlineprivate

Definition at line 26 of file notemenu.c.

27 {
28 MissionGameplay mission = MissionGameplay.Cast( GetGame().GetMission() );
29 if( mission )
30 {
31 IngameHud hud = IngameHud.Cast( mission.GetHud() );
32 if ( hud )
33 {
34 hud.ShowHudUI( true );
35 }
36 }
37 }

References GetGame(), Mission::GetHud(), and mission.

◆ ~PresetsMenu()

void UIScriptedMenu::~PresetsMenu ( )
inlineprivate

Definition at line 7 of file presetsmenu.c.

8 {
9 }

◆ ~RadialQuickbarMenu()

void UIScriptedMenu::~RadialQuickbarMenu ( )
inlineprivate

Definition at line 122 of file radialquickbarmenu.c.

123 {
124 if (GetGame() && GetGame().GetMission())
125 {
126 GetGame().GetMission().RemoveActiveInputExcludes({"radialmenu"},false);
127 }
128 }

References GetGame(), CGame::GetMission(), and Mission::RemoveActiveInputExcludes().

◆ ~RespawnDialogue()

void UIScriptedMenu::~RespawnDialogue ( )
inlineprivate

Definition at line 18 of file respawndialogue.c.

19 {
20 }

◆ ~SceneEditorMenu()

void UIScriptedMenu::~SceneEditorMenu ( )
inlineprivate

Definition at line 376 of file sceneeditormenu.c.

377 {
379
380 if ( IsModuleExist(PluginSceneManager) )
381 {
382 m_ModuleSceneManager.OnUIEditorClosed();
384 }
385
386 m_NotifyFadeTimer.Stop();
387 }
protected ref WidgetFadeTimer m_NotifyFadeTimer
protected PluginSceneManager m_ModuleSceneManager
bool IsModuleExist(typename plugin_type)

References IsModuleExist(), and PopupCloseAll().

◆ ~ScriptConsole()

void UIScriptedMenu::~ScriptConsole ( )
inlineprivate

Definition at line 54 of file scriptconsole.c.

55 {
56 #ifndef SERVER
57 if (GetGame() && GetGame().GetMission() && GetGame().GetMission().GetHud())
58 {
61 }
62 #endif
65 {
66 m_PreviewEntity.Delete();
67 }
69
73
74 m_PresetsTextListbox.ClearItems();
75
76 PluginRemotePlayerDebugClient plugin_remote_client = PluginRemotePlayerDebugClient.Cast( GetPlugin(PluginRemotePlayerDebugClient) );
77 if (SHOW_OTHERS && plugin_remote_client)
78 plugin_remote_client.RequestPlayerInfo( PlayerBase.Cast(GetGame().GetPlayer()), 0 );
79
81 {
82 m_ConfigDebugProfile.SetItemCategoryFlag(m_CategoryMask);
83 }
84
86 m_ItemDisagPlugin.OnScriptMenuOpened(false);
87
88 if (GetGame() && GetGame().GetMission())
89 {
91 }
92
94 }
void ShowQuickbarPlayer(bool show)
void ShowHudPlayer(bool show)
proto native float GetScale()
void EnableAllInputs(bool bForceSupress=false)
Manager class for managing Effect (EffectParticle, EffectSound)
Definition: effectmanager.c:6
static void DestroyEffect(Effect effect)
Unregisters, stops and frees the Effect.
static EffectSound m_SoundSet
Definition: scriptconsole.c:7
static bool SHOW_OTHERS
Definition: scriptconsole.c:19
MapWidget m_DebugMapWidget
protected PluginConfigDebugProfile m_ConfigDebugProfile
static EntityAI m_PreviewEntity
Definition: scriptconsole.c:23
static int PRESETS_SELECTED_ROW
Definition: scriptconsole.c:16
static int ITEMS_IN_PRESET_SELECTED_ROW
Definition: scriptconsole.c:17
static float DEBUG_MAP_ZOOM
Definition: scriptconsole.c:14
protected TextListboxWidget m_PresetItemsTextListbox
protected TextListboxWidget m_PresetsTextListbox
PluginItemDiagnostic m_ItemDisagPlugin
Definition: scriptconsole.c:30
ref Timer m_RefreshFilterTimer
Definition: scriptconsole.c:39
static int ITEMS_SELECTED_ROW
Definition: scriptconsole.c:15
TextListboxWidget m_ObjectsTextListbox
PluginBase GetPlugin(typename plugin_type)

References SEffectManager::DestroyEffect(), Mission::EnableAllInputs(), GetGame(), Mission::GetHud(), CGame::GetMission(), GetPlayer(), GetPlugin(), Hud::ShowHudPlayer(), and Hud::ShowQuickbarPlayer().

◆ ~ScriptConsoleNewPresetDialog()

void UIScriptedMenu::~ScriptConsoleNewPresetDialog ( )
inlineprivate

Definition at line 8 of file scriptconsolenewpresetdialog.c.

9 {
10 }

◆ ~ScriptConsoleRenamePresetDialog()

void UIScriptedMenu::~ScriptConsoleRenamePresetDialog ( )
inlineprivate

Definition at line 8 of file scriptconsolerenamepresetdialog.c.

9 {
10 }

◆ ~StartupMenu()

void UIScriptedMenu::~StartupMenu ( )
inlineprivate

Definition at line 7 of file startupmenu.c.

8 {
9 }

◆ ~TitleScreenMenu()

void UIScriptedMenu::~TitleScreenMenu ( )
inlineprivate

Definition at line 12 of file titlescreenmenu.c.

13 {
14 }

Member Function Documentation

◆ Add()

void UIScriptedMenu::Add ( string  message)
inlineprivate

Definition at line 462 of file scriptconsole.c.

463 {
465 {
466 m_Rows = m_Rows + 1;
467
468 if ( message != string.Empty )
469 {
470 m_ClientLogListbox.AddItem(String(message), NULL, 0);
471
472 if ( m_ClientLogScrollCheckbox.IsChecked() )
473 {
474 m_ClientLogListbox.EnsureVisible( m_Rows );
475 }
476 }
477 }
478 }
TextListboxWidget m_ClientLogListbox
CheckBoxWidget m_ClientLogScrollCheckbox
string String(string s)
Helper for passing string expression to functions with void parameter. Example: Print(String("Hello "...
Definition: enscript.c:339
Empty
Definition: hand_states.c:14

References Empty, and String().

Referenced by Dispatcher::ScriptConsoleAddPrint().

◆ AddActor()

void UIScriptedMenu::AddActor ( string  actor_type)
inlineprivate

Definition at line 315 of file cameratoolsmenu.c.

316 {
317 vector pos = GetCameraLookDir();
318 CTActor ac = new CTActor( m_Actors.Count(), pos, "0 0 0", actor_type, new array<string>, "", this );
319 if ( ac.GetObj() )
320 m_Actors.Insert( ac );
321 }
protected ref array< ref CTActor > m_Actors
vector GetCameraLookDir()
Result for an object found in CGame.IsBoxCollidingGeometryProxy.

◆ AddEvent()

void UIScriptedMenu::AddEvent ( int  actor_index)
inlineprivate

Definition at line 323 of file cameratoolsmenu.c.

324 {
325 if ( actor_index > -1 )
326 {
327 CTEvent ev = new CTEvent( m_Events.Count(), actor_index, m_EventContent, false, this );
328 m_Events.Insert( ev );
329 }
330 }
protected ref array< ref CTEvent > m_Events
protected Widget m_EventContent

◆ AddFavorite()

void UIScriptedMenu::AddFavorite ( string  ipAddress,
int  port,
bool  favorite 
)
inlineprivate

Definition at line 245 of file serverbrowsermenunew.c.

246 {
247 string serverId = ipAddress + ":" + port;
248 bool isFavorited = IsFavorited(serverId);
249
250 if ( favorite && !isFavorited )
251 {
252 m_Favorites.Insert( serverId );
253 }
254 else if ( isFavorited )
255 {
256 m_Favorites.RemoveItem(serverId);
257 m_OfficialTab.Unfavorite(serverId);
258 m_CommunityTab.Unfavorite(serverId);
259 m_FavoritesTab.Unfavorite(serverId);
260#ifndef PLATFORM_CONSOLE
261 m_LANTab.Unfavorite(serverId);
262#endif
263 }
264 }
protected ref TStringArray m_Favorites
protected ref ServerBrowserTab m_CommunityTab
protected ref ServerBrowserTab m_OfficialTab
bool IsFavorited(string server_id)
protected ref ServerBrowserTab m_LANTab
protected ref ServerBrowserTab m_FavoritesTab

References IsFavorited().

Referenced by SetFavoriteConsoles().

◆ AddFavoritesToFilter()

void UIScriptedMenu::AddFavoritesToFilter ( GetServersInput  input)
inlineprivate

Definition at line 205 of file serverbrowsermenunew.c.

206 {
207 foreach ( string id : m_Favorites )
208 {
209 array<string> output = new array<string>;
210 id.Split( ":", output );
211 if ( output.Count() == 2 )
212 {
213 string ip = output[0];
214 int port = output[1].ToInt();
215 input.AddFavourite( ip, port );
216 }
217 }
218 }
void AddFavourite(string ip, int port)

References GetServersInput::AddFavourite().

◆ AddGroup()

void UIScriptedMenu::AddGroup ( int  index,
Input  input 
)
inlineprivate

Definition at line 504 of file keybindingsmenu.c.

505 {
506 }

◆ AddHandsItem()

void UIScriptedMenu::AddHandsItem ( string  id,
string  type 
)
inlineprivate

Definition at line 344 of file cameratoolsmenu.c.

345 {
346 int id_int = id.ToInt();
347 if ( m_Actors.Count() > id_int && id_int > -1 )
348 {
349 CTActor ac = m_Actors.Get( id_int );
350 if ( ac )
351 ac.SetHandsItem( type );
352 }
353 }

◆ AddItem()

void UIScriptedMenu::AddItem ( string  id,
string  type 
)
inlineprivate

Definition at line 333 of file cameratoolsmenu.c.

334 {
335 int id_int = id.ToInt();
336 if ( m_Actors.Count() > id_int && id_int > -1 )
337 {
338 CTActor ac = m_Actors.Get( id_int );
339 if ( ac )
340 ac.AddItem( type );
341 }
342 }

◆ AddItemToClipboard()

void UIScriptedMenu::AddItemToClipboard ( TextListboxWidget  text_listbox_widget)
inlineprivate

Definition at line 2105 of file scriptconsole.c.

2106 {
2107 int selected_row_index = text_listbox_widget.GetSelectedRow();
2108 if ( selected_row_index != -1 )
2109 {
2110 string item_name;
2111 text_listbox_widget.GetItemText( selected_row_index, 0, item_name );
2112 GetGame().CopyToClipboard( item_name );
2113 }
2114 }
proto native void CopyToClipboard(string text)

References CGame::CopyToClipboard(), and GetGame().

Referenced by OnClick().

◆ AddItemToPreset() [1/2]

void UIScriptedMenu::AddItemToPreset ( )
inlineprivate

Definition at line 246 of file sceneeditormenu.c.

247 {
248 int selected_row_index = m_ClWgtLbxClassesList.GetSelectedRow();
249 if ( selected_row_index != -1 && GetCurrentPresetIndex() != -1 )
250 {
251 string item_name;
252 m_ClWgtLbxClassesList.GetItemText( selected_row_index, 0, item_name );
253 m_ConfigDebugProfile.ItemAddToPreset( GetCurrentPresetName(), item_name);
255 }
256 }
int GetCurrentPresetIndex()
void RenderPresetItems()
protected TextListboxWidget m_ClWgtLbxClassesList
string GetCurrentPresetName()

References GetCurrentPresetIndex(), GetCurrentPresetName(), and RenderPresetItems().

Referenced by OnClick().

◆ AddItemToPreset() [2/2]

void UIScriptedMenu::AddItemToPreset ( )
inlineprivate

Definition at line 2079 of file scriptconsole.c.

2080 {
2081 int selected_row_index = m_ObjectsTextListbox.GetSelectedRow();
2082 if ( selected_row_index != -1 && GetCurrentPresetIndex() != -1 )
2083 {
2084 string item_name;
2085 m_ObjectsTextListbox.GetItemText( selected_row_index, 0, item_name );
2086 m_ConfigDebugProfile.ItemAddToPreset( GetCurrentPresetName(), item_name);
2088 }
2089 }

References GetCurrentPresetIndex(), GetCurrentPresetName(), and RenderPresetItems().

◆ AddKeyframe()

void UIScriptedMenu::AddKeyframe ( )
inlineprivate

Definition at line 271 of file cameratoolsmenu.c.

272 {
273 if ( Camera.GetCurrentCamera() )
274 {
275 vector pos = Camera.GetCurrentCamera().GetWorldPosition();
276 vector orient = Camera.GetCurrentCamera().GetOrientation();
277 CTKeyframe kf = new CTKeyframe( m_Cameras.Count(), pos, orient, 1, 70, 50, -1, GetTotalTime( m_Cameras.Count() ), m_KeyframeContent, this );
278 m_Cameras.Insert( kf );
279 SelectKeyframe( kf );
280 }
281 }
Definition: camera.c:70
void SelectKeyframe(CTKeyframe kf)
protected ref array< ref CTKeyframe > m_Cameras
float GetTotalTime(int index)
protected Widget m_KeyframeContent

◆ AddMarker()

void UIScriptedMenu::AddMarker ( vector  pos,
int  color,
int  icon = 0 
)
inlineprivate

Definition at line 290 of file mapmenu.c.

291 {
292 m_Map.InsertMarker(pos,"",color,icon);
294 m_WasChanged = true;
295 }
static string GetMarkerTypeFromID(int id)
proto native void AddUserMark(vector pos, string text, int color, string texturePath)
protected ref MapWidget m_MapWidgetInstance
Definition: mapmenu.c:16
protected ItemMap m_Map
Definition: mapmenu.c:32
protected bool m_WasChanged
Definition: mapmenu.c:7

References MapMarkerTypes::GetMarkerTypeFromID().

◆ AddServer()

void UIScriptedMenu::AddServer ( string  message)
inlineprivate

Definition at line 480 of file scriptconsole.c.

481 {
482 /*if (m_ServerLogListbox)
483 {
484 m_ServerRows = m_ServerRows + 1;
485 m_ServerLogListbox.AddItem(String(message), NULL, 0);
486 if ( m_ServerLogScrollCheckbox.IsChecked() )
487 {
488 m_ServerLogListbox.EnsureVisible( m_ServerRows );
489 }
490 }*/
491 }

◆ Apply() [1/3]

void UIScriptedMenu::Apply ( )
inlineprivate

renames character

Definition at line 190 of file charactercreationmenu.c.

191 {
192 if ( !m_Scene.GetIntroCharacter().IsDefaultCharacter() )
193 {
194 string name = m_NameSelector.GetValue();
195 if( name == "" )
197
198 m_Scene.GetIntroCharacter().SaveCharName(name);
199 }
200
201 MainMenu menu_main = MainMenu.Cast(GetGame().GetUIManager().FindMenu(MENU_MAIN));
202 if (menu_main)
203 {
204 menu_main.OnChangeCharacter(false);
205 }
207 }
proto native UIManager GetUIManager()
IntroSceneCharacter GetIntroCharacter()
bool Back()
Close top window on windows stack, returns true when any window is closed.
Definition: uimanager.c:64
DayZIntroScenePC m_Scene
protected ref OptionSelectorEditbox m_NameSelector
const string DEFAULT_CHARACTER_NAME
Definition: constants.c:801
const int MENU_MAIN
Definition: constants.c:159
string name

References UIManager::Back(), GameConstants::DEFAULT_CHARACTER_NAME, GetGame(), DayZIntroSceneXbox::GetIntroCharacter(), CGame::GetUIManager(), MENU_MAIN, and name.

Referenced by OnClick(), and Update().

◆ Apply() [2/3]

void UIScriptedMenu::Apply ( )
inlineprivate

Definition at line 211 of file keybindingsmenu.c.

212 {
214 m_Apply.SetFlags( WidgetFlags.IGNOREPOINTER );
216 m_Undo.SetFlags( WidgetFlags.IGNOREPOINTER );
217 ColorWhite( m_Defaults, null );
218 m_Defaults.ClearFlags( WidgetFlags.IGNOREPOINTER );
219
220 m_GroupsContainer.Apply();
221
222 // save input configuration
223 GetUApi().Export();
224 }
proto native void Export()
void ColorWhite(Widget w, Widget enterW)
protected ButtonWidget m_Defaults
protected Widget m_Apply
void ColorDisabled(Widget w)
protected ButtonWidget m_Undo
protected ref KeybindingsContainer m_GroupsContainer
WidgetFlags
Definition: enwidgets.c:57
proto native UAInputAPI GetUApi()

References ColorDisabled(), ColorWhite(), UAInputAPI::Export(), and GetUApi().

◆ Apply() [3/3]

void UIScriptedMenu::Apply ( )
inlineprivate

Definition at line 178 of file optionsmenu.c.

179 {
180 m_ControlsTab.Apply();
181
182 //if ( m_GameTab.IsChanged() )
183 {
184 m_GameTab.Apply();
185 }
186
187 if ( m_Options.IsChanged() || m_GameTab.IsChanged() )
188 {
189 m_Options.Test();
190 m_Options.Apply();
191 }
192
193 // save input configuration
194 GetUApi().Export();
195
196 if (GetGame().GetInput().IsEnabledMouseAndKeyboard()) //useless on consoles
197 {
198 m_Apply.SetFlags( WidgetFlags.IGNOREPOINTER );
200 m_Reset.SetFlags( WidgetFlags.IGNOREPOINTER );
202 }
203
204 m_CanApplyOrReset = false;
205 #ifdef PLATFORM_CONSOLE
207 #endif
208
209 if ( m_Options.NeedRestart() )
210 g_Game.GetUIManager().ShowDialog("#main_menu_configure", "#menu_restart_needed", 117, DBT_YESNO, DBB_YES, DMT_QUESTION, this);
211 }
ActionInput GetInput()
Definition: actionbase.c:1126
protected void ColorDisable(Widget w)
Definition: ingamemenu.c:388
protected ButtonWidget m_Reset
Definition: optionsmenu.c:16
protected Widget m_Options
protected ref OptionsMenuGame m_GameTab
Definition: optionsmenu.c:7
protected ref OptionsMenuControls m_ControlsTab
Definition: optionsmenu.c:10
protected void UpdateControlsElements()
protected bool m_CanApplyOrReset
Definition: optionsmenu.c:24

References ColorDisable(), UAInputAPI::Export(), g_Game, GetGame(), GetInput(), GetUApi(), and UpdateControlsElements().

◆ AutoConnect()

void UIScriptedMenu::AutoConnect ( )
inlineprivate

Definition at line 528 of file mainmenu.c.

529 {
531 }
static void AutoConnectToEmptyServer()

References OnlineServices::AutoConnectToEmptyServer().

◆ Back() [1/6]

void UIScriptedMenu::Back ( )
inlineprivate

Definition at line 87 of file controlsxboxnew.c.

88 {
90 }

References UIManager::Back(), GetGame(), and CGame::GetUIManager().

Referenced by OnClick(), OnClick(), Update(), and Update().

◆ Back() [2/6]

void UIScriptedMenu::Back ( )
inlineprivate

Definition at line 225 of file charactercreationmenu.c.

226 {
227 //bring back DefaultCharacter, if it exists (it should), or a previously played one.
229 #ifdef PLATFORM_CONSOLE
231 {
233 }
234 #endif
236 m_Scene.GetIntroCharacter().CreateNewCharacterById(m_Scene.GetIntroCharacter().GetCharacterID());
238 }
proto native MenuData GetMenuData()
Return singleton of MenuData class - at main menu contains characters played with current profile.
proto bool RequestGetDefaultCharacterData()
const int DEFAULT_CHARACTER_MENU_ID
Definition: constants.c:803

References UIManager::Back(), GameConstants::DEFAULT_CHARACTER_MENU_ID, GetGame(), DayZIntroSceneXbox::GetIntroCharacter(), CGame::GetMenuData(), CGame::GetUIManager(), and MenuData::RequestGetDefaultCharacterData().

◆ Back() [3/6]

void UIScriptedMenu::Back ( )
inlineprivate

Definition at line 226 of file keybindingsmenu.c.

227 {
228 if( m_CurrentSettingKeyIndex != -1 )
229 {
231 return;
232 }
233
235 {
237 return;
238 }
239
240 bool changed = m_GroupsContainer.IsChanged();
241
242 if ( changed )
243 {
244 g_Game.GetUIManager().ShowDialog("#main_menu_configure", "#main_menu_configure_desc", MODAL_ID_BACK, DBT_YESNO, DBB_YES, DMT_QUESTION, this);
245 }
246 else
247 {
249 }
250 }
protected int m_CurrentSettingAlternateKeyIndex
protected int m_CurrentSettingKeyIndex
void CancelEnteringKeybind()
const int MODAL_ID_BACK
void CancelEnteringAlternateKeybind()

References UIManager::Back(), CancelEnteringAlternateKeybind(), CancelEnteringKeybind(), g_Game, GetGame(), and CGame::GetUIManager().

◆ Back() [4/6]

void UIScriptedMenu::Back ( )
inlineprivate

Definition at line 105 of file tutorialsmenu.c.

106 {
108 }

References UIManager::Back(), GetGame(), and CGame::GetUIManager().

◆ Back() [5/6]

void UIScriptedMenu::Back ( )
inlineprivate

Definition at line 213 of file optionsmenu.c.

214 {
215 if (!g_Game.GetUIManager().IsDialogVisible() && !g_Game.GetUIManager().IsModalVisible())
216 {
217 if (IsAnyTabChanged())
218 {
219 g_Game.GetUIManager().ShowDialog("#main_menu_configure", "#main_menu_configure_desc", 1337, DBT_YESNO, DBB_YES, DMT_QUESTION, this);
220 }
221 else
222 {
223 m_Options.Revert();
226 }
227 }
228 }
proto native void EndOptionsVideo()
bool IsAnyTabChanged()
Definition: optionsmenu.c:249

References UIManager::Back(), CGame::EndOptionsVideo(), g_Game, GetGame(), CGame::GetUIManager(), and IsAnyTabChanged().

◆ Back() [6/6]

void UIScriptedMenu::Back ( )
inlineprivate

Definition at line 266 of file serverbrowsermenunew.c.

267 {
269 }

References UIManager::Back(), GetGame(), and CGame::GetUIManager().

◆ BackButtonFocus()

void UIScriptedMenu::BackButtonFocus ( )
inlineprivate

Definition at line 325 of file serverbrowsermenunew.c.

326 {
328 }
protected ButtonWidget m_Back
proto native void SetFocus(Widget w)

References m_Back, and SetFocus().

◆ BackOneLevel() [1/2]

protected void UIScriptedMenu::BackOneLevel ( )
inlineprivate

Definition at line 622 of file gesturesmenu.c.

623 {
625 UpdateCategoryName( "" );
626 }
protected void RefreshGestures(GestureCategories category_id=-1)
Definition: gesturesmenu.c:271
protected void UpdateCategoryName(string name)
Definition: gesturesmenu.c:443

◆ BackOneLevel() [2/2]

protected void UIScriptedMenu::BackOneLevel ( )
inlineprivate

Definition at line 719 of file radialquickbarmenu.c.

720 {
722 {
724 }
725 }
protected void ChangeCurrentCategory(int category)
protected int m_CurrentCategory
Definition: gesturesmenu.c:123
RadialQuickbarCategory

◆ BottomChanged()

void UIScriptedMenu::BottomChanged ( )
inlineprivate

Definition at line 313 of file charactercreationmenu.c.

314 {
317 SetCharacterSaved(false);
318 //m_Scene.GetIntroCharacter().SetAttachment( m_BottomSelector.GetStringValue(), InventorySlots.LEGS );
319 }
MenuDefaultCharacterData GetMenuDefaultCharacterData(bool fill_data=true)
Definition: game.c:1359
provides access to slot configuration
Definition: inventoryslots.c:6
void SetDefaultAttachment(int slotID, string type)
Definition: gameplay.c:930
void EquipDefaultCharacter(Man player)
Definition: gameplay.c:953
void SetCharacterSaved(bool state)

References MenuDefaultCharacterData::EquipDefaultCharacter(), GetGame(), DayZIntroSceneXbox::GetIntroCharacter(), CGame::GetMenuDefaultCharacterData(), SetCharacterSaved(), and MenuDefaultCharacterData::SetDefaultAttachment().

◆ ButtonSetAlphaAnim()

void UIScriptedMenu::ButtonSetAlphaAnim ( Widget  w)
inlineprivate

Definition at line 425 of file mainmenuconsoles.c.

426 {
427 if ( !w )
428 return;
429
430 Widget panel = w.FindWidget( w.GetName() + "_panel" );
431
432 if ( panel )
433 {
434 SetWidgetAnimAlpha( panel );
435 }
436 }

Referenced by ColorHighlight(), and ColorNormal().

◆ ButtonSetColor() [1/7]

protected void UIScriptedMenu::ButtonSetColor ( Widget  w,
int  color 
)
inlineprivate

Definition at line 411 of file ingamemenu.c.

412 {
413 if (!w)
414 return;
415
416 Widget panel = w.FindWidget(w.GetName() + "_panel");
417
418 if (panel)
419 {
420 panel.SetColor(color);
421 }
422 }

Referenced by ColorDisable(), ColorHighlight(), and ColorNormal().

◆ ButtonSetColor() [2/7]

void UIScriptedMenu::ButtonSetColor ( Widget  w,
int  color 
)
inlineprivate

Definition at line 690 of file ingamemenuxbox.c.

691 {
692 if( !w )
693 return;
694
695 Widget panel = w.FindWidget( w.GetName() + "_panel" );
696
697 if( panel )
698 {
699 panel.SetColor( color );
700 }
701 }

◆ ButtonSetColor() [3/7]

void UIScriptedMenu::ButtonSetColor ( Widget  w,
int  color 
)
inlineprivate

Definition at line 623 of file mainmenu.c.

624 {
625 if( !w )
626 return;
627
628 Widget panel = w.FindWidget( w.GetName() + "_panel" );
629
630 if( panel )
631 {
632 panel.SetColor( color );
633 }
634 }

◆ ButtonSetColor() [4/7]

void UIScriptedMenu::ButtonSetColor ( Widget  w,
int  color 
)
inlineprivate

Definition at line 412 of file mainmenuconsoles.c.

413 {
414 if ( !w )
415 return;
416
417 Widget panel = w.FindWidget( w.GetName() + "_panel" );
418
419 if ( panel )
420 {
421 panel.SetColor( color );
422 }
423 }

◆ ButtonSetColor() [5/7]

void UIScriptedMenu::ButtonSetColor ( Widget  w,
int  color 
)
inlineprivate

Definition at line 519 of file tutorialsmenu.c.

520 {
521 if( !w )
522 return;
523
524 Widget panel = w.FindWidget( w.GetName() + "_panel" );
525
526 if( panel )
527 {
528 panel.SetColor( color );
529 }
530 }

◆ ButtonSetColor() [6/7]

void UIScriptedMenu::ButtonSetColor ( Widget  w,
int  color 
)
inlineprivate

Definition at line 783 of file serverbrowsermenunew.c.

784 {
785 if ( !w )
786 return;
787
788 Widget panel = w.FindWidget( w.GetName() + "_panel" );
789
790 if ( panel )
791 {
792 panel.SetColor( color );
793 }
794 }

◆ ButtonSetColor() [7/7]

protected void UIScriptedMenu::ButtonSetColor ( Widget  w,
int  color 
)
inlineprivate

Definition at line 175 of file respawndialogue.c.

176 {
177 if( !w )
178 return;
179
180 Widget panel = w.FindWidget( w.GetName() + "_panel" );
181
182 if( panel )
183 {
184 panel.SetColor( color );
185 }
186 }

◆ ButtonSetText() [1/6]

protected void UIScriptedMenu::ButtonSetText ( Widget  w,
string  text 
)
inlineprivate

Definition at line 397 of file ingamemenu.c.

398 {
399 if (!w)
400 return;
401
402 TextWidget label = TextWidget.Cast(w.FindWidget(w.GetName() + "_label"));
403
404 if (label)
405 {
406 label.SetText(text);
407 }
408
409 }

Referenced by Init().

◆ ButtonSetText() [2/6]

void UIScriptedMenu::ButtonSetText ( Widget  w,
string  text 
)
inlineprivate

Definition at line 676 of file ingamemenuxbox.c.

677 {
678 if( !w )
679 return;
680
681 TextWidget label = TextWidget.Cast(w.FindWidget( w.GetName() + "_label" ) );
682
683 if( label )
684 {
685 label.SetText( text );
686 }
687
688 }

◆ ButtonSetText() [3/6]

void UIScriptedMenu::ButtonSetText ( Widget  w,
string  text 
)
inlineprivate

Definition at line 609 of file mainmenu.c.

610 {
611 if( !w )
612 return;
613
614 TextWidget label = TextWidget.Cast(w.FindWidget( w.GetName() + "_label" ) );
615
616 if( label )
617 {
618 label.SetText( text );
619 }
620
621 }

◆ ButtonSetText() [4/6]

void UIScriptedMenu::ButtonSetText ( Widget  w,
string  text 
)
inlineprivate

Definition at line 398 of file mainmenuconsoles.c.

399 {
400 if ( !w )
401 return;
402
403 TextWidget label = TextWidget.Cast(w.FindWidget( w.GetName() + "_label" ) );
404
405 if ( label )
406 {
407 label.SetText( text );
408 }
409
410 }

◆ ButtonSetText() [5/6]

void UIScriptedMenu::ButtonSetText ( Widget  w,
string  text 
)
inlineprivate

Definition at line 505 of file tutorialsmenu.c.

506 {
507 if( !w )
508 return;
509
510 TextWidget label = TextWidget.Cast(w.FindWidget( w.GetName() + "_label" ) );
511
512 if( label )
513 {
514 label.SetText( text );
515 }
516
517 }

◆ ButtonSetText() [6/6]

void UIScriptedMenu::ButtonSetText ( Widget  w,
string  text 
)
inlineprivate

Definition at line 769 of file serverbrowsermenunew.c.

770 {
771 if ( !w )
772 return;
773
774 TextWidget label = TextWidget.Cast(w.FindWidget( w.GetName() + "_label" ) );
775
776 if ( label )
777 {
778 label.SetText( text );
779 }
780
781 }

◆ ButtonSetTextColor() [1/7]

protected void UIScriptedMenu::ButtonSetTextColor ( Widget  w,
int  color 
)
inlineprivate

Definition at line 424 of file ingamemenu.c.

425 {
426 if (!w)
427 return;
428
429 TextWidget label = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_label"));
430
431 if (label)
432 {
433 label.SetColor(color);
434 }
435 }

Referenced by ColorDisable(), ColorHighlight(), and ColorNormal().

◆ ButtonSetTextColor() [2/7]

void UIScriptedMenu::ButtonSetTextColor ( Widget  w,
int  color 
)
inlineprivate

Definition at line 703 of file ingamemenuxbox.c.

704 {
705 if( !w )
706 return;
707
708 TextWidget label = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_label" ) );
709 TextWidget text = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_text" ) );
710 TextWidget text2 = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_text_1" ) );
711
712 if( label )
713 {
714 label.SetColor( color );
715 }
716
717 if( text )
718 {
719 text.SetColor( color );
720 }
721
722 if( text2 )
723 {
724 text2.SetColor( color );
725 }
726 }

◆ ButtonSetTextColor() [3/7]

void UIScriptedMenu::ButtonSetTextColor ( Widget  w,
int  color 
)
inlineprivate

Definition at line 649 of file mainmenu.c.

650 {
651 if( !w )
652 return;
653
654 TextWidget label = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_label" ) );
655 TextWidget text = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_text" ) );
656 TextWidget text2 = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_text_1" ) );
657
658 if( label )
659 {
660 label.SetColor( color );
661 }
662
663 if( text )
664 {
665 text.SetColor( color );
666 }
667
668 if( text2 )
669 {
670 text2.SetColor( color );
671 }
672 }

◆ ButtonSetTextColor() [4/7]

void UIScriptedMenu::ButtonSetTextColor ( Widget  w,
int  color 
)
inlineprivate

Definition at line 438 of file mainmenuconsoles.c.

439 {
440 if ( !w )
441 return;
442
443 TextWidget label = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_label" ) );
444 TextWidget text = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_text" ) );
445 TextWidget text2 = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_text_1" ) );
446
447 if ( label )
448 {
449 label.SetColor( color );
450 }
451
452 if ( text )
453 {
454 text.SetColor( color );
455 }
456
457 if ( text2 )
458 {
459 text2.SetColor( color );
460 }
461 }

◆ ButtonSetTextColor() [5/7]

void UIScriptedMenu::ButtonSetTextColor ( Widget  w,
int  color 
)
inlineprivate

Definition at line 545 of file tutorialsmenu.c.

546 {
547 if( !w )
548 return;
549
550 TextWidget label = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_label" ) );
551 TextWidget text = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_text" ) );
552 TextWidget text2 = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_text_1" ) );
553
554 if( label )
555 {
556 label.SetColor( color );
557 }
558
559 if( text )
560 {
561 text.SetColor( color );
562 }
563
564 if( text2 )
565 {
566 text2.SetColor( color );
567 }
568 }

◆ ButtonSetTextColor() [6/7]

void UIScriptedMenu::ButtonSetTextColor ( Widget  w,
int  color 
)
inlineprivate

Definition at line 796 of file serverbrowsermenunew.c.

797 {
798 if ( !w )
799 return;
800
801 TextWidget label = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_label" ) );
802 TextWidget text = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_text" ) );
803 TextWidget text2 = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_text_1" ) );
804
805 if ( label )
806 {
807 label.SetColor( color );
808 }
809
810 if ( text )
811 {
812 text.SetColor( color );
813 }
814
815 if ( text2 )
816 {
817 text2.SetColor( color );
818 }
819 }

◆ ButtonSetTextColor() [7/7]

protected void UIScriptedMenu::ButtonSetTextColor ( Widget  w,
int  color 
)
inlineprivate

Definition at line 188 of file respawndialogue.c.

189 {
190 if( !w )
191 return;
192
193 TextWidget label = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_label" ) );
194
195 if( label )
196 {
197 label.SetColor( color );
198 }
199 }

◆ CameraToolsMenu()

void UIScriptedMenu::CameraToolsMenu ( )
inlineprivate

Definition at line 61 of file cameratoolsmenu.c.

62 {
66
67 m_Camera1 = Camera.Cast( GetGame().CreateObject( "staticcamera", GetGame().GetPlayer().GetPosition(), true ) );
68 m_Camera2 = Camera.Cast( GetGame().CreateObject( "staticcamera", GetGame().GetPlayer().GetPosition(), true ) );
69
70 m_Instance = this;
71 }
static protected CameraToolsMenu m_Instance
class JsonUndergroundAreaTriggerData GetPosition
Retrieve position.

References GetGame(), GetPlayer(), GetPosition, and m_Instance.

◆ Cancel() [1/2]

void UIScriptedMenu::Cancel ( )
inlineprivate

Definition at line 69 of file invitemenu.c.

70 {
72
73 g_Game.SetGameState( DayZGameState.IN_GAME );
74 g_Game.SetLoadState( DayZLoadState.CONNECT_CONTROLLER_SELECT );
75 Close();
76 }
ScriptCallQueue GetCallQueue(int call_category)
Definition: game.c:1318
proto void Remove(func fn)
remove specific call from queue
void UpdateTime()
Definition: invitemenu.c:60
const int CALL_CATEGORY_SYSTEM
Definition: tools.c:8
void Close()
Definition: itembase.c:8864

References CALL_CATEGORY_SYSTEM, Close(), g_Game, CGame::GetCallQueue(), GetGame(), and ScriptCallQueue::Remove().

Referenced by OnClick(), OnKeyDown(), and Update().

◆ Cancel() [2/2]

void UIScriptedMenu::Cancel ( )
inlineprivate

Definition at line 171 of file logoutmenu.c.

172 {
175
176 // request logout cancel from server
178 }
proto native void LogoutRequestCancel()
void Continue()
Definition: gameplay.c:729

References CALL_CATEGORY_SYSTEM, Mission::Continue(), CGame::GetCallQueue(), GetGame(), CGame::GetMission(), CGame::LogoutRequestCancel(), and ScriptCallQueue::Remove().

◆ CancelEnteringAlternateKeybind()

void UIScriptedMenu::CancelEnteringAlternateKeybind ( )
inlineprivate

Definition at line 146 of file keybindingsmenu.c.

147 {
148 m_GroupsContainer.CancelEnteringAlternateKeybind();
150 }

Referenced by Back().

◆ CancelEnteringKeybind()

void UIScriptedMenu::CancelEnteringKeybind ( )
inlineprivate

Definition at line 134 of file keybindingsmenu.c.

135 {
136 m_GroupsContainer.CancelEnteringKeybind();
138 }

Referenced by Back().

◆ CanSaveDefaultCharacter()

bool UIScriptedMenu::CanSaveDefaultCharacter ( )
inlineprivate

Definition at line 385 of file mainmenu.c.

386 {
387 //TODO - check if default character exists
388 if (m_ScenePC && m_ScenePC.GetIntroCharacter() && m_ScenePC.GetIntroCharacter().GetCharacterID() == -1)
389 {
390 return true;
391 }
392 return false;
393 }
protected DayZIntroScenePC m_ScenePC
Definition: mainmenu.c:7

References DayZIntroScene::GetIntroCharacter().

◆ CanStoreBeOpened()

bool UIScriptedMenu::CanStoreBeOpened ( )
inlineprivate

Definition at line 291 of file mainmenuconsoles.c.

292 {
293 return ( m_ModsDetailed && m_ModsDetailed.IsOpen() && m_ModsDetailed.GetHighlighted() && !GetGame().GetContentDLCService().OwnsAllDLC() );
294 }
protected ref ModsMenuDetailed m_ModsDetailed
Definition: mainmenu.c:40

References GetGame().

Referenced by Update(), and UpdateControlsElements().

◆ ChangeAccount()

void UIScriptedMenu::ChangeAccount ( )
inlineprivate

Definition at line 332 of file mainmenuconsoles.c.

333 {
334 BiosUserManager user_manager = GetGame().GetUserManager();
335 if ( user_manager )
336 {
337 g_Game.SetLoadState( DayZLoadState.MAIN_MENU_START );
338 #ifndef PLATFORM_WINDOWS
339 user_manager.SelectUserEx( null );
340 #endif
342 }
343 }
void SelectUserEx(BiosUser user)
proto native BiosUserManager GetUserManager()

References UIManager::Back(), g_Game, GetGame(), CGame::GetUIManager(), CGame::GetUserManager(), and BiosUserManager::SelectUserEx().

Referenced by OnClick(), and Update().

◆ ChangeConfigFilter()

void UIScriptedMenu::ChangeConfigFilter ( )
inlineprivate

Definition at line 731 of file scriptconsole.c.

732 {
733 if ( m_ObjectConfigFilter.GetText() == "" )
734 {
736 }
737 else
738 {
740 }
741 }
EditBoxWidget m_ObjectConfigFilter
void FindInHierarchy(string class_name)

References ClearHierarchy(), and FindInHierarchy().

Referenced by OnChange().

◆ ChangeCurrentCategory()

protected void UIScriptedMenu::ChangeCurrentCategory ( int  category)
inlineprivate

Definition at line 500 of file radialquickbarmenu.c.

501 {
502 m_CurrentCategory = category;
503 RefreshQuickbar(false);
505 }
void RefreshQuickbar()
Definition: inventorymenu.c:75

References RefreshQuickbar().

◆ ChangeFilter()

void UIScriptedMenu::ChangeFilter ( TStringArray  classes,
TextListboxWidget  widget,
EditBoxWidget  filterWidget,
int  categoryMask = -1,
bool  ignoreScope = false 
)
inlineprivate

get text

Definition at line 658 of file scriptconsole.c.

659 {
661 //m_ConfigDebugProfile.SetItemSearch( filterWidget.GetText() );
662 widget.ClearItems();
663
664 string filter_lower = filterWidget.GetText().Trim();
665 filter_lower.ToLower( );
666
667
668 TStringArray items = new TStringArray;
669
670 TStringArray filters = new TStringArray;
671 filter_lower.Split( " ", filters );
672
673 for ( int i = 0; i < classes.Count(); i++ )
674 {
675 string config_path = classes.Get(i);
676
677 int objects_count = GetGame().ConfigGetChildrenCount( config_path );
678 for ( int j = 0; j < objects_count; j++ )
679 {
680 string child_name;
681 GetGame().ConfigGetChildName( config_path, j, child_name );
682
683 int scope = GetGame().ConfigGetInt( config_path + " " + child_name + " scope" );
684
685 if ( scope >= m_ObjectsScope || ignoreScope)
686 {
687 int category_bit = GetGame().ConfigGetInt( config_path + " " + child_name + " debug_ItemCategory" ) - 1;
688 category_bit = (1 << category_bit);
689
690 bool display = false;
691 if (category_bit & categoryMask )
692 {
693 display = true;
694 }
695 else if ( (!m_ConfigDebugProfile.GetMergeType() || categoryMask == 0) && filters.Count() > 0 )
696 {
697 string child_name_lower = child_name;
698 child_name_lower.ToLower( );
699
700 for ( int k = 0; k < filters.Count(); k++ )
701 {
702 if ( child_name_lower.Contains(filters.Get(k)))
703 {
704 display = true;
705 break;
706 }
707 }
708 }
709 else if(categoryMask == 0 )
710 {
711 display = true;
712 }
713
714 if ( display )
715 {
716 items.Insert(child_name);
717
718 }
719 }
720 }
721 }
722 items.Sort();
723 foreach (string s: items)
724 {
725 widget.AddItem( s, NULL, 0 );
726
727 }
728
729 }
proto bool ConfigGetChildName(string path, int index, out string name)
Get name of subclass in config class on path.
proto native int ConfigGetInt(string path)
Get int value from config on path.
proto native int ConfigGetChildrenCount(string path)
Get count of subclasses in config class on path.
static int m_ObjectsScope
Definition: scriptconsole.c:18
array< string > TStringArray
Definition: enscript.c:685
bool Contains(string sample)
Retunrs true if sample is substring of string.
Definition: enstring.c:272
void Split(string sample, out array< string > output)
Splits string into array of strings separated by 'sample'.
Definition: enstring.c:381
proto int ToLower()
Changes string to lowercase. Returns length.

References CGame::ConfigGetChildName(), CGame::ConfigGetChildrenCount(), CGame::ConfigGetInt(), string::Contains(), GetGame(), string::Split(), and string::ToLower().

Referenced by ChangeFilterItems(), and ChangeFilterSound().

◆ ChangeFilterItems()

void UIScriptedMenu::ChangeFilterItems ( )
inlineprivate

Definition at line 1807 of file scriptconsole.c.

1808 {
1809 m_ConfigDebugProfile.SetItemSearch(m_ObjectFilter.GetText());
1811 }
EditBoxWidget m_ObjectFilter
TStringArray GetItemsClasses()
void ChangeFilter(TStringArray classes, TextListboxWidget widget, EditBoxWidget filterWidget, int categoryMask=-1, bool ignoreScope=false)

References ChangeFilter(), and GetItemsClasses().

Referenced by Init(), OnChange(), and OnClick().

◆ ChangeFilterSound()

void UIScriptedMenu::ChangeFilterSound ( )
inlineprivate

Definition at line 1813 of file scriptconsole.c.

1814 {
1815 m_ConfigDebugProfile.SetSoundsetFilter(m_SoundFilter.GetText());
1817 }
TextListboxWidget m_SoundsTextListbox
EditBoxWidget m_SoundFilter
TStringArray GetSoundClasses()

References ChangeFilter(), and GetSoundClasses().

Referenced by OnClick(), and OnTabSeleted().

◆ CharacterCreationMenu()

void UIScriptedMenu::CharacterCreationMenu ( )
inlineprivate

Definition at line 35 of file charactercreationmenu.c.

36 {
37 MissionMainMenu mission = MissionMainMenu.Cast( GetGame().GetMission() );
38
39 #ifdef PLATFORM_CONSOLE
40 m_Scene = mission.GetIntroSceneXbox();
41 #else
42 m_Scene = mission.GetIntroScenePC();
43 #endif
44
46 }
void ResetIntroCamera()

References GetGame(), mission, and DayZIntroSceneXbox::ResetIntroCamera().

◆ ChatInputMenu()

void UIScriptedMenu::ChatInputMenu ( )
inlineprivate

Definition at line 7 of file chatinputmenu.c.

8 {
9 m_close_timer = new Timer();
10 }
private ref Timer m_close_timer
Definition: chatinputmenu.c:5

◆ CheckForLightsAndNVG()

protected void UIScriptedMenu::CheckForLightsAndNVG ( out ref array< ref RadialQuickbarItem items,
int  last_idx 
)
inlineprivate

Definition at line 284 of file radialquickbarmenu.c.

285 {
286 PlayerBase player = PlayerBase.Cast( GetGame().GetPlayer() );
287 int count = 0;
288 EntityAI entity;
289 ItemBase headgear = ItemBase.Cast(player.FindAttachmentBySlotName("Headgear"));
290 ItemBase eyewear = ItemBase.Cast(player.FindAttachmentBySlotName("Eyewear"));
291
292 //nvg - headgear check
293 if ( headgear )
294 {
295 entity = headgear.FindAttachmentBySlotName("NVG");
296 if (entity)
297 {
298 items.Insert( new RadialQuickbarItem( count, entity, "", RadialQuickbarCategory.SPECIALIZED_LIGHTS ) );
299 count++;
300 }
301 }
302 //nvg/light - eyewear check
303 if ( eyewear )
304 {
305 entity = eyewear.FindAttachmentBySlotName("NVG");
306 if (entity)
307 {
308 items.Insert( new RadialQuickbarItem( count, entity, "", RadialQuickbarCategory.SPECIALIZED_LIGHTS ) );
309 count++;
310 }
311 else if ( eyewear.IsLightSource() && eyewear.HasEnergyManager() && eyewear.GetCompEM().CanWork() )
312 {
313 entity = eyewear;
314 items.Insert( new RadialQuickbarItem( count, entity, "", RadialQuickbarCategory.SPECIALIZED_LIGHTS ) );
315 count++;
316 }
317 }
318 //light
319 if ( headgear )
320 {
321 if ( headgear.GetInventory().AttachmentCount() > 0 )
322 {
323 ItemBase attachment;
324 for (int i = 0; i < headgear.GetInventory().AttachmentCount(); i++)
325 {
326 attachment = ItemBase.Cast(headgear.GetInventory().GetAttachmentFromIndex(i));
327 if ( attachment && attachment.IsLightSource() && attachment.HasEnergyManager() && attachment.GetCompEM().CanWork() )
328 {
329 entity = attachment;
330 items.Insert( new RadialQuickbarItem( count, entity, "", RadialQuickbarCategory.SPECIALIZED_LIGHTS ) );
331 count++;
332 }
333 }
334 }
335 }
336
337 //Add a category switchers
338 if (m_CurrentCategory == RadialQuickbarCategory.DEFAULT && count > 0)
339 {
340 items.InsertAt( new RadialQuickbarItem(32,null,"#toggle_lights",RadialQuickbarCategory.DEFAULT,RadialQuickbarCategory.SPECIALIZED_LIGHTS),0 );
341 }
342 else if (m_CurrentCategory == RadialQuickbarCategory.SPECIALIZED_LIGHTS)
343 {
344 items.InsertAt( new RadialQuickbarItem(32,null,"#menu_back",RadialQuickbarCategory.SPECIALIZED_LIGHTS,RadialQuickbarCategory.DEFAULT),0 );
345 }
346 }
proto native int AttachmentCount()
Returns count of attachments attached to this item.
void RadialQuickbarItem(int id, EntityAI item, string item_name, int category=RadialQuickbarCategory.DEFAULT, int category_switch=-1)

References AttachmentCount(), GetGame(), GetPlayer(), and RadialQuickbarItem().

◆ CheckNewOptions()

void UIScriptedMenu::CheckNewOptions ( )
inlineprivate

Definition at line 498 of file charactercreationmenu.c.

499 {
500 bool show_widgets = m_Scene.GetIntroCharacter().IsDefaultCharacter();
501 bool was_visible = layoutRoot.FindAnyWidget( "character_gender_button" ).IsVisible();
502 layoutRoot.FindAnyWidget( "character_gender_button" ).Show( show_widgets );
503 layoutRoot.FindAnyWidget( "character_head_button" ).Show( show_widgets );
504 layoutRoot.FindAnyWidget( "character_top_button" ).Show( show_widgets );
505 layoutRoot.FindAnyWidget( "character_bottom_button" ).Show( show_widgets );
506 layoutRoot.FindAnyWidget( "character_shoes_button" ).Show( show_widgets );
507
508 if (!was_visible && show_widgets)
509 m_GenderSelector.Focus();
510 if (!show_widgets)
512 }
protected Widget m_RandomizeCharacter

References DayZIntroSceneXbox::GetIntroCharacter(), and SetFocus().

Referenced by Init(), OnShow(), and RandomizeCharacter().

◆ Clear()

void UIScriptedMenu::Clear ( )
inlineprivate

Definition at line 600 of file scriptconsole.c.

601 {
602 m_Rows = 0;
603 m_ClientLogListbox.ClearItems();
604 }

Referenced by OnClick().

◆ ClearAlternativeKeybind()

void UIScriptedMenu::ClearAlternativeKeybind ( int  key_index)
inlineprivate

Definition at line 120 of file keybindingsmenu.c.

121 {
122 ColorWhite( m_Apply, null );
123 m_Apply.ClearFlags( WidgetFlags.IGNOREPOINTER );
124 ColorWhite( m_Undo, null );
125 m_Undo.ClearFlags( WidgetFlags.IGNOREPOINTER );
126 }

References ColorWhite().

◆ ClearHierarchy()

void UIScriptedMenu::ClearHierarchy ( )
inlineprivate

Definition at line 2325 of file scriptconsole.c.

2326 {
2327 // config hierarchy
2328 // string config_path = "configfile CfgVehicles APC";
2329 // string config_path = "";
2330
2331 m_ConfigHierarchyTextListbox.ClearItems();
2332 m_ConfigVariablesTextListbox.ClearItems();
2333
2334 string config_path = "configfile";
2335 TStringArray variables = m_ModuleConfigViewer.GetConfigHierarchy( config_path );
2336 for ( int i = 0; i < variables.Count(); i++ )
2337 {
2338 string variable = variables.Get(i);
2339
2340 for ( int j = 0; j < m_BaseConfigClassesToggled.Count(); j++ )
2341 {
2342 if ( variable == m_BaseConfigClassesToggled.Get(j) )
2343 {
2344 string new_config_path = ( config_path + " " + variable ).Trim();
2345 m_ConfigHierarchyTextListbox.AddItem( "+ " + variable, new ConfigParamsEx( false, variable, 0, new_config_path, 0,variable ), 0);
2346 }
2347 }
2348 }
2349 }
TextListboxWidget m_ConfigVariablesTextListbox
ref TStringArray m_BaseConfigClassesToggled
Definition: scriptconsole.c:29
PluginConfigViewer m_ModuleConfigViewer
TextListboxWidget m_ConfigHierarchyTextListbox
Param6< bool, string, int, string, int, string > ConfigParamsEx
Definition: scriptconsole.c:3

References string::Get().

Referenced by ChangeConfigFilter(), Init(), LateInit(), and OnClick().

◆ ClearKeybind()

void UIScriptedMenu::ClearKeybind ( int  key_index)
inlineprivate

Definition at line 112 of file keybindingsmenu.c.

113 {
114 ColorWhite( m_Apply, null );
115 m_Apply.ClearFlags( WidgetFlags.IGNOREPOINTER );
116 ColorWhite( m_Undo, null );
117 m_Undo.ClearFlags( WidgetFlags.IGNOREPOINTER );
118 }

References ColorWhite().

◆ CloseMapMenu()

void UIScriptedMenu::CloseMapMenu ( )
inlineprivate

Definition at line 312 of file mapmenu.c.

313 {
314 if (m_WasChanged)
315 {
316 m_Map.SyncMapMarkers();
317 m_WasChanged = false;
318 }
319
320 PlayerBase player = PlayerBase.Cast(g_Game.GetPlayer());
321 if (player)
322 {
323 player.SetMapClosingSyncSet(false); //map is closing, server needs to be notified - once
324 }
325
326 if (m_Hud)
327 {
328 m_Hud.ShowHudUI(true);
329 m_Hud.ShowQuickbarUI(true);
330 }
331
333 {
335 {
337 }
338 else
339 {
340 GetGame().GetMission().RemoveActiveInputExcludes({"loopedactions"});
341 }
342
343 GetGame().GetMission().RemoveActiveInputRestriction(EInputRestrictors.MAP);
344 }
345
346 Close();
347 }
static bool GetUse3DMap()
static bool GetMapIgnoreMapOwnership()
void RemoveActiveInputRestriction(int restrictor)
protected ref IngameHud m_Hud
Definition: mapmenu.c:14

References Close(), g_Game, GetGame(), CfgGameplayHandler::GetMapIgnoreMapOwnership(), CGame::GetMission(), CfgGameplayHandler::GetUse3DMap(), m_Hud, Mission::RemoveActiveInputExcludes(), Mission::RemoveActiveInputRestriction(), Hud::ShowHudUI(), and Hud::ShowQuickbarUI().

Referenced by OnClick(), and Update().

◆ CloseMenu() [1/2]

static void UIScriptedMenu::CloseMenu ( )
inlinestaticprivate

Definition at line 159 of file gesturesmenu.c.

160 {
161 //execute on menu release
162 instance.OnMenuRelease();
163
165
166 //GetGame().GetMission().RemoveActiveInputExcludes({"radialmenu"},false);
167 }
static GesturesMenu instance
Definition: gesturesmenu.c:126

References UIManager::Back(), GetGame(), and CGame::GetUIManager().

◆ CloseMenu() [2/2]

static void UIScriptedMenu::CloseMenu ( )
inlinestaticprivate

Definition at line 168 of file radialquickbarmenu.c.

169 {
171 //GetGame().GetMission().RemoveActiveInputExcludes({"radialmenu"},false);
172 }

References UIManager::Back(), GetGame(), and CGame::GetUIManager().

◆ CloseOnline()

void UIScriptedMenu::CloseOnline ( )
inlineprivate

Definition at line 463 of file ingamemenuxbox.c.

464 {
465 m_OnlineMenu.Show( false );
466 layoutRoot.FindAnyWidget( "play_panel_root2" ).Show( false );
467 layoutRoot.FindAnyWidget( "play_panel_root" ).Show( true );
468 layoutRoot.FindAnyWidget( "dayz_logo" ).Show( true );
469 layoutRoot.FindAnyWidget( "Select" ).Show( true );
470 layoutRoot.FindAnyWidget( "Mute" ).Show( false );
471 layoutRoot.FindAnyWidget( "Gamercard" ).Show( false );
472
474 }
protected Widget m_OnlineMenu
protected ButtonWidget m_OnlineButton

References SetFocus().

Referenced by OnClick().

◆ CollapseHierarchy()

void UIScriptedMenu::CollapseHierarchy ( int  row)
inlineprivate

Definition at line 2430 of file scriptconsole.c.

2431 {
2432 if( row <= -1 && row >= m_ConfigHierarchyTextListbox.GetNumItems() )
2433 {
2434 return;
2435 }
2436
2437 ConfigParamsEx config_params;
2438 ConfigParamsEx config_params_next;
2439 m_ConfigHierarchyTextListbox.GetItemData( row, 0, config_params );
2440 m_ConfigHierarchyTextListbox.GetItemData( row + 1, 0, config_params_next );
2441
2442 int deep = config_params.param5;
2443 int deep_next = config_params_next.param5;
2444 int max_count = m_ConfigHierarchyTextListbox.GetNumItems();
2445 int remove_lines_count = 0;
2446 // Print(max_count);
2447 for ( int i = row + 1; i < max_count; i++)
2448 {
2449 if ( deep < deep_next && i <= max_count )
2450 {
2451 remove_lines_count = remove_lines_count + 1;
2452 m_ConfigHierarchyTextListbox.GetItemData( i, 0, config_params_next );
2453 deep_next = config_params_next.param5;
2454 }
2455 }
2456
2457 // remove remove_lines_count lines from row
2458 // remove_lines_count = remove_lines_count - 1;
2459 for ( i = 1; i < remove_lines_count; i++ )
2460 {
2461 int x = row + 1;
2462 if ( x < max_count )
2463 {
2464 m_ConfigHierarchyTextListbox.RemoveRow( x );
2465 }
2466 }
2467
2468 string offset = "";
2469 for ( i = 0; i < deep; i++)
2470 {
2471 offset = offset + " ";
2472 }
2473 m_ConfigHierarchyTextListbox.SetItem( row, offset + "+ " + config_params.param2, new ConfigParamsEx( false, config_params.param2, 0, config_params.param4, deep,"" ), 0 );
2474 /* //not sure why this is here, but it's causing issues when collapsing items in config viewer, disabling for now
2475 if( deep == 0 )
2476 {
2477 ClearHierarchy();
2478 }
2479 */
2480 }
Icon x

References x.

Referenced by OnClick().

◆ ColorDisable() [1/4]

protected void UIScriptedMenu::ColorDisable ( Widget  w)
inlineprivate

Definition at line 388 of file ingamemenu.c.

389 {
390 if (!w)
391 return;
392
393 ButtonSetColor(w, ARGB(0, 0, 0, 0));
395 }
static int COLOR_DISABLED_TEXT
Definition: colormanager.c:11
protected void ButtonSetTextColor(Widget w, int color)
Definition: ingamemenu.c:424
protected void ButtonSetColor(Widget w, int color)
Definition: ingamemenu.c:411
int ARGB(int a, int r, int g, int b)
Definition: proto.c:322

References ARGB(), ButtonSetColor(), ButtonSetTextColor(), and ColorManager::COLOR_DISABLED_TEXT.

Referenced by Apply(), OnChanged(), Reset(), and ResetCurrentTab().

◆ ColorDisable() [2/4]

void UIScriptedMenu::ColorDisable ( Widget  w)
inlineprivate

Definition at line 632 of file ingamemenuxbox.c.

633 {
634 #ifdef PLATFORM_WINDOWS
635 SetFocus( null );
636 #endif
637
638 ButtonWidget button = ButtonWidget.Cast( w );
639 if( button && button != m_ContinueButton )
640 {
641 button.SetTextColor( ARGB( 255, 255, 255, 255 ) );
642 }
643 ButtonSetColor( w, ARGB(0, 0, 0, 0) );
644 ButtonSetTextColor(w, ARGB(60, 0, 0, 0) );
645 }
protected Widget m_ContinueButton
Definition: ingamemenu.c:5

References ARGB(), ButtonSetColor(), ButtonSetTextColor(), and SetFocus().

◆ ColorDisable() [3/4]

void UIScriptedMenu::ColorDisable ( Widget  w)
inlineprivate

Definition at line 707 of file charactercreationmenu.c.

708 {
709 #ifndef PLATFORM_CONSOLE
710 SetFocus( null );
711 #endif
712
713 if ( w )
714 {
715 ButtonWidget button = ButtonWidget.Cast( w );
716 if( button )
717 {
718 button.SetTextColor( ColorManager.COLOR_DISABLED_TEXT );
719 }
720 }
721
722 TextWidget text1 = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_text" ) );
723 TextWidget text2 = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_label" ) );
724 TextWidget text3 = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_text_1" ) );
725 ImageWidget image = ImageWidget.Cast( w.FindAnyWidget( w.GetName() + "_image" ) );
726 Widget option = Widget.Cast( w.FindAnyWidget( w.GetName() + "_option_wrapper" ) );
727 Widget option_label = w.FindAnyWidget( "option_label" );
728
729 if( text1 )
730 {
731 text1.SetColor( ColorManager.COLOR_DISABLED_TEXT );
732 }
733
734 if( text2 )
735 {
736 text2.SetColor( ColorManager.COLOR_DISABLED_TEXT );
737 }
738
739 if( text3 )
740 {
741 text3.SetColor( ColorManager.COLOR_DISABLED_TEXT );
742 w.SetAlpha(1);
743 }
744
745 if( image )
746 {
747 image.SetColor( ColorManager.COLOR_DISABLED_TEXT );
748 }
749
750 if ( option )
751 {
752 option.SetColor( ColorManager.COLOR_DISABLED_TEXT );
753 }
754
755 #ifndef PLATFORM_CONSOLE
756 if ( option_label )
757 {
758 option_label.SetColor( ColorManager.COLOR_DISABLED_TEXT );
759 }
760 #endif
761 }

References ColorManager::COLOR_DISABLED_TEXT, and SetFocus().

◆ ColorDisable() [4/4]

void UIScriptedMenu::ColorDisable ( Widget  w)
inlineprivate

Definition at line 750 of file optionsmenu.c.

751 {
752 #ifdef PLATFORM_WINDOWS
753 SetFocus( null );
754 #endif
755
756 if ( w )
757 {
758 ButtonWidget button = ButtonWidget.Cast( w );
759 if ( button )
760 {
761 button.SetTextColor( ColorManager.COLOR_DISABLED_TEXT );
762 }
763 }
764 }

References ColorManager::COLOR_DISABLED_TEXT, and SetFocus().

◆ ColorDisabled()

void UIScriptedMenu::ColorDisabled ( Widget  w)
inlineprivate

Definition at line 433 of file keybindingsmenu.c.

434 {
435 #ifdef PLATFORM_WINDOWS
436 SetFocus( null );
437 #endif
438
439 ButtonWidget button = ButtonWidget.Cast(w);
440 if ( button )
441 {
442 button.SetTextColor(ColorManager.COLOR_DISABLED_TEXT);
443 }
444 }

References ColorManager::COLOR_DISABLED_TEXT, and SetFocus().

Referenced by Apply(), Init(), OnFocusLost(), OnMouseLeave(), PerformSetToDefaults(), and Reset().

◆ ColorHighlight() [1/9]

protected void UIScriptedMenu::ColorHighlight ( Widget  w)
inlineprivate

Definition at line 370 of file ingamemenu.c.

371 {
372 if (!w)
373 return;
374
375 ButtonSetColor(w, ARGB(255, 0, 0, 0));
376 ButtonSetTextColor(w, ARGB(255, 255, 0, 0));
377 }

References ARGB(), ButtonSetColor(), and ButtonSetTextColor().

Referenced by OnFocus(), and OnMouseEnter().

◆ ColorHighlight() [2/9]

void UIScriptedMenu::ColorHighlight ( Widget  w)
inlineprivate

Definition at line 647 of file ingamemenuxbox.c.

648 {
649 if( !w )
650 return;
651
652 int color_pnl = ARGB(255, 0, 0, 0);
653 int color_lbl = ARGB(255, 255, 0, 0);
654
655 #ifdef PLATFORM_CONSOLE
656 color_pnl = ARGB(255, 200, 0, 0);
657 color_lbl = ARGB(255, 255, 255, 255);
658 #endif
659
660 ButtonSetColor(w, color_pnl);
661 ButtonSetTextColor(w, color_lbl);
662 }

References ARGB(), ButtonSetColor(), and ButtonSetTextColor().

◆ ColorHighlight() [3/9]

void UIScriptedMenu::ColorHighlight ( Widget  w)
inlineprivate

Definition at line 607 of file charactercreationmenu.c.

608 {
609 if( w.IsInherited( ButtonWidget ) )
610 {
611 ButtonWidget button = ButtonWidget.Cast( w );
612 button.SetTextColor( ARGB( 255, 200, 0, 0 ) );
613 }
614
615 w.SetColor( ARGB( 255, 0, 0, 0) );
616
617 TextWidget text1 = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_text" ) );
618 TextWidget text2 = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_label" ) );
619 TextWidget text3 = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_text_1" ) );
620 ImageWidget image = ImageWidget.Cast( w.FindAnyWidget( w.GetName() + "_image" ) );
621 Widget option = Widget.Cast( w.FindAnyWidget( w.GetName() + "_option_wrapper" ) );
622 Widget option_label = w.FindAnyWidget( "option_label" );
623
624 if( text1 )
625 {
626 text1.SetColor( ARGB( 255, 255, 0, 0 ) );
627 }
628
629 if( text2 )
630 {
631 text2.SetColor( ARGB( 255, 255, 0, 0 ) );
632 }
633
634 if( text3 )
635 {
636 text3.SetColor( ARGB( 255, 255, 0, 0 ) );
637 w.SetAlpha(1);
638 }
639
640 if( image )
641 {
642 image.SetColor( ARGB( 255, 200, 0, 0 ) );
643 }
644
645 if ( option )
646 {
647 option.SetColor( ARGB( 255, 255, 0, 0 ) );
648 }
649
650 #ifndef PLATFORM_CONSOLE
651 if ( option_label )
652 {
653 option_label.SetColor( ARGB( 255, 255, 0, 0 ) );
654 }
655 #endif
656 }

References ARGB().

◆ ColorHighlight() [4/9]

void UIScriptedMenu::ColorHighlight ( Widget  w)
inlineprivate

Definition at line 579 of file mainmenu.c.

580 {
581 if( !w )
582 return;
583
584 //SetFocus( w );
585
586 int color_pnl = ARGB(255, 0, 0, 0);
587 int color_lbl = ARGB(255, 255, 0, 0);
588 int color_img = ARGB(255, 200, 0, 0);
589
590 ButtonSetColor(w, color_pnl);
591 ButtonSetTextColor(w, color_lbl);
592 ImagenSetColor(w, color_img);
593 }
void ImagenSetColor(Widget w, int color)
Definition: mainmenu.c:636

References ARGB(), ButtonSetColor(), ButtonSetTextColor(), and ImagenSetColor().

◆ ColorHighlight() [5/9]

void UIScriptedMenu::ColorHighlight ( Widget  w)
inlineprivate

Definition at line 351 of file mainmenuconsoles.c.

352 {
353 if ( !w )
354 return;
355
356 int color_pnl = ARGB(255, 200, 0, 0);
357 int color_lbl = ARGB(255, 255, 255, 255);
358
359 ButtonSetColor(w, color_pnl);
361 ButtonSetTextColor(w, color_lbl);
362 }
void ButtonSetAlphaAnim(Widget w)

References ARGB(), ButtonSetAlphaAnim(), ButtonSetColor(), and ButtonSetTextColor().

◆ ColorHighlight() [6/9]

void UIScriptedMenu::ColorHighlight ( Widget  w)
inlineprivate

Definition at line 470 of file tutorialsmenu.c.

471 {
472 if( !w )
473 return;
474
475 //SetFocus( w );
476
477 int color_pnl = ARGB(255, 0, 0, 0);
478 int color_lbl = ARGB(255, 255, 0, 0);
479 int color_img = ARGB(255, 200, 0, 0);
480
481 #ifdef PLATFORM_CONSOLE
482 color_pnl = ARGB(255, 200, 0, 0);
483 color_lbl = ARGB(255, 255, 255, 255);
484 #endif
485
486 ButtonSetColor(w, color_pnl);
487 ButtonSetTextColor(w, color_lbl);
488 ImagenSetColor(w, color_img);
489 }

References ARGB(), ButtonSetColor(), ButtonSetTextColor(), and ImagenSetColor().

◆ ColorHighlight() [7/9]

void UIScriptedMenu::ColorHighlight ( Widget  w)
inlineprivate

Definition at line 649 of file optionsmenu.c.

650 {
651 if ( w.IsInherited( ButtonWidget ) )
652 {
653 ButtonWidget button = ButtonWidget.Cast( w );
654 button.SetTextColor( ARGB( 255, 200, 0, 0 ) );
655 }
656
657 w.SetColor( ARGB( 255, 0, 0, 0) );
658
659 TextWidget text1 = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_text" ) );
660 TextWidget text2 = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_label" ) );
661 TextWidget text3 = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_text_1" ) );
662 ImageWidget image = ImageWidget.Cast( w.FindAnyWidget( w.GetName() + "_image" ) );
663 Widget option = Widget.Cast( w.FindAnyWidget( w.GetName() + "_option_wrapper" ) );
664 Widget option_label = w.FindAnyWidget( "option_label" );
665
666 if ( text1 )
667 {
668 text1.SetColor( ARGB( 255, 255, 0, 0 ) );
669 }
670
671 if ( text2 )
672 {
673 text2.SetColor( ARGB( 255, 255, 0, 0 ) );
674 }
675
676 if ( text3 )
677 {
678 text3.SetColor( ARGB( 255, 255, 0, 0 ) );
679 w.SetAlpha(1);
680 }
681
682 if ( image )
683 {
684 image.SetColor( ARGB( 255, 200, 0, 0 ) );
685 }
686
687 if ( option )
688 {
689 option.SetColor( ARGB( 255, 255, 0, 0 ) );
690 }
691
692 if ( option_label )
693 {
694 option_label.SetColor( ARGB( 255, 255, 0, 0 ) );
695 }
696 }

References ARGB().

◆ ColorHighlight() [8/9]

void UIScriptedMenu::ColorHighlight ( Widget  w)
inlineprivate

Definition at line 738 of file serverbrowsermenunew.c.

739 {
740 if ( !w )
741 return;
742
743 //SetFocus( w );
744
745 int color_pnl = ARGB(255, 0, 0, 0);
746 int color_lbl = ARGB(255, 255, 0, 0);
747
748 #ifdef PLATFORM_CONSOLE
749 color_pnl = ARGB(255, 200, 0, 0);
750 color_lbl = ARGB(255, 255, 255, 255);
751 #endif
752
753 ButtonSetColor(w, color_pnl);
754 ButtonSetTextColor(w, color_lbl);
755 }

References ARGB(), ButtonSetColor(), and ButtonSetTextColor().

◆ ColorHighlight() [9/9]

protected void UIScriptedMenu::ColorHighlight ( Widget  w)
inlineprivate

Definition at line 152 of file respawndialogue.c.

153 {
154 if( !w )
155 return;
156 if( m_CurrentlyHighlighted != w )
157 {
161 }
162 ButtonSetColor(w, ARGB(255, 0, 0, 0));
163 ButtonSetTextColor(w, ARGB(255, 255, 0, 0));
164 }
protected Widget m_CurrentlyHighlighted
protected void ColorNormal(Widget w)
Definition: ingamemenu.c:379

References ARGB(), ButtonSetColor(), ButtonSetTextColor(), and ColorNormal().

◆ ColorNormal() [1/9]

protected void UIScriptedMenu::ColorNormal ( Widget  w)
inlineprivate

Definition at line 379 of file ingamemenu.c.

380 {
381 if (!w)
382 return;
383
384 ButtonSetColor(w, ARGB(0, 0, 0, 0));
385 ButtonSetTextColor(w, ARGB(255, 255, 255, 255));
386 }

References ARGB(), ButtonSetColor(), and ButtonSetTextColor().

Referenced by ColorHighlight(), OnChanged(), OnFocusLost(), OnModalResult(), OnMouseLeave(), and PerformSetToDefaults().

◆ ColorNormal() [2/9]

void UIScriptedMenu::ColorNormal ( Widget  w)
inlineprivate

Definition at line 664 of file ingamemenuxbox.c.

665 {
666 if( !w )
667 return;
668
669 int color_pnl = ARGB(0, 0, 0, 0);
670 int color_lbl = ARGB(255, 255, 255, 255);
671
672 ButtonSetColor(w, color_pnl);
673 ButtonSetTextColor(w, color_lbl);
674 }

References ARGB(), ButtonSetColor(), and ButtonSetTextColor().

◆ ColorNormal() [3/9]

void UIScriptedMenu::ColorNormal ( Widget  w)
inlineprivate

Definition at line 658 of file charactercreationmenu.c.

659 {
660 if( w.IsInherited( ButtonWidget ) )
661 {
662 ButtonWidget button = ButtonWidget.Cast( w );
663 button.SetTextColor( ColorManager.COLOR_NORMAL_TEXT );
664 }
665
666 TextWidget text1 = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_text" ) );
667 TextWidget text2 = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_text_1" ) );
668 TextWidget text3 = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_label" ) );
669 ImageWidget image = ImageWidget.Cast( w.FindAnyWidget( w.GetName() + "_image" ) );
670 Widget option = w.FindAnyWidget( w.GetName() + "_option_wrapper" );
671 Widget option_label = w.FindAnyWidget( "option_label" );
672
673 if( text1 )
674 {
675 text1.SetColor( ColorManager.COLOR_NORMAL_TEXT );
676 }
677
678 if( text2 )
679 {
680 text2.SetColor( ColorManager.COLOR_NORMAL_TEXT );
681 }
682
683 if( text3 )
684 {
685 text3.SetColor( ColorManager.COLOR_NORMAL_TEXT );
686 w.SetAlpha(0);
687 }
688
689 if( image )
690 {
691 image.SetColor( ColorManager.COLOR_NORMAL_TEXT );
692 }
693
694 if ( option )
695 {
696 option.SetColor( ARGB( 150, 255, 255, 255 ) );
697 }
698
699 #ifndef PLATFORM_CONSOLE
700 if ( option_label )
701 {
702 option_label.SetColor( ColorManager.COLOR_NORMAL_TEXT );
703 }
704 #endif
705 }
static int COLOR_NORMAL_TEXT
Definition: colormanager.c:5

References ARGB(), and ColorManager::COLOR_NORMAL_TEXT.

◆ ColorNormal() [4/9]

void UIScriptedMenu::ColorNormal ( Widget  w)
inlineprivate

Definition at line 595 of file mainmenu.c.

596 {
597 if( !w )
598 return;
599
600 int color_pnl = ARGB(0, 0, 0, 0);
601 int color_lbl = ARGB(255, 255, 255, 255);
602 int color_img = ARGB(255, 255, 255, 255);
603
604 ButtonSetColor(w, color_pnl);
605 ButtonSetTextColor(w, color_lbl);
606 ImagenSetColor(w, color_img);
607 }

References ARGB(), ButtonSetColor(), ButtonSetTextColor(), and ImagenSetColor().

◆ ColorNormal() [5/9]

void UIScriptedMenu::ColorNormal ( Widget  w)
inlineprivate

Definition at line 364 of file mainmenuconsoles.c.

365 {
366 if ( !w )
367 return;
368
369 int color_pnl = ARGB(0, 0, 0, 0);
370 int color_lbl = ARGB(255, 255, 255, 255);
371
372 ButtonSetColor(w, color_pnl);
373 ButtonSetAlphaAnim( null );
374 ButtonSetTextColor(w, color_lbl);
375 }

References ARGB(), ButtonSetAlphaAnim(), ButtonSetColor(), and ButtonSetTextColor().

◆ ColorNormal() [6/9]

void UIScriptedMenu::ColorNormal ( Widget  w)
inlineprivate

Definition at line 491 of file tutorialsmenu.c.

492 {
493 if( !w )
494 return;
495
496 int color_pnl = ARGB(0, 0, 0, 0);
497 int color_lbl = ARGB(255, 255, 255, 255);
498 int color_img = ARGB(255, 255, 255, 255);
499
500 ButtonSetColor(w, color_pnl);
501 ButtonSetTextColor(w, color_lbl);
502 ImagenSetColor(w, color_img);
503 }

References ARGB(), ButtonSetColor(), ButtonSetTextColor(), and ImagenSetColor().

◆ ColorNormal() [7/9]

void UIScriptedMenu::ColorNormal ( Widget  w)
inlineprivate

Definition at line 698 of file optionsmenu.c.

699 {
700 if ( (w.GetFlags() & WidgetFlags.IGNOREPOINTER) == WidgetFlags.IGNOREPOINTER )
701 {
702 return;
703 }
704
705 if ( w.IsInherited( ButtonWidget ) )
706 {
707 ButtonWidget button = ButtonWidget.Cast( w );
708 button.SetTextColor( ARGB( 255, 255, 255, 255 ) );
709 }
710
711 TextWidget text1 = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_text" ) );
712 TextWidget text2 = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_text_1" ) );
713 TextWidget text3 = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_label" ) );
714 ImageWidget image = ImageWidget.Cast( w.FindAnyWidget( w.GetName() + "_image" ) );
715 Widget option = w.FindAnyWidget( w.GetName() + "_option_wrapper" );
716 Widget option_label = w.FindAnyWidget( "option_label" );
717
718 if ( text1 )
719 {
720 text1.SetColor( ARGB( 255, 255, 255, 255 ) );
721 }
722
723 if ( text2 )
724 {
725 text2.SetColor( ARGB( 255, 255, 255, 255 ) );
726 }
727
728 if ( text3 )
729 {
730 text3.SetColor( ARGB( 255, 255, 255, 255 ) );
731 w.SetAlpha(0);
732 }
733
734 if ( image )
735 {
736 image.SetColor( ARGB( 255, 255, 255, 255 ) );
737 }
738
739 if ( option )
740 {
741 option.SetColor( ARGB( 150, 255, 255, 255 ) );
742 }
743
744 if ( option_label )
745 {
746 option_label.SetColor( ARGB( 255, 255, 255, 255 ) );
747 }
748 }

References ARGB().

◆ ColorNormal() [8/9]

void UIScriptedMenu::ColorNormal ( Widget  w)
inlineprivate

Definition at line 757 of file serverbrowsermenunew.c.

758 {
759 if ( !w )
760 return;
761
762 int color_pnl = ARGB(0, 0, 0, 0);
763 int color_lbl = ARGB(255, 255, 255, 255);
764
765 ButtonSetColor(w, color_pnl);
766 ButtonSetTextColor(w, color_lbl);
767 }

References ARGB(), ButtonSetColor(), and ButtonSetTextColor().

◆ ColorNormal() [9/9]

protected void UIScriptedMenu::ColorNormal ( Widget  w)
inlineprivate

Definition at line 166 of file respawndialogue.c.

167 {
168 if( !w )
169 return;
170
171 ButtonSetColor(w, ARGB(0, 0, 0, 0));
172 ButtonSetTextColor(w, ARGB(255, 255, 255, 255));
173 }

References ARGB(), ButtonSetColor(), and ButtonSetTextColor().

◆ ColorRed() [1/2]

void UIScriptedMenu::ColorRed ( Widget  w)
inlineprivate

Definition at line 931 of file cameratoolsmenu.c.

932 {
933 //SetFocus( w );
934 if ( w.IsInherited( ButtonWidget ) )
935 {
936 ButtonWidget button = ButtonWidget.Cast( w );
937 button.SetTextColor( ARGB( 255, 255, 0, 0 ) );
938 button.SetAlpha( 0.9 );
939 }
940 }

References ARGB().

Referenced by OnFocus(), and OnMouseEnter().

◆ ColorRed() [2/2]

void UIScriptedMenu::ColorRed ( Widget  w)
inlineprivate

Definition at line 402 of file keybindingsmenu.c.

403 {
404 SetFocus( w );
405
406 ButtonWidget button = ButtonWidget.Cast( w );
407 if( button && button != m_Apply )
408 {
409 button.SetTextColor( ARGB( 255, 200, 0, 0 ) );
410 }
411 }

References ARGB(), and SetFocus().

◆ ColorRunButton()

void UIScriptedMenu::ColorRunButton ( bool  success)
inlineprivate

Definition at line 620 of file scriptconsole.c.

621 {
622 if (success)
623 {
624 m_EnfScriptRun.SetColor(ARGB(255,0,255,0));
625 }
626 else
627 {
628 m_EnfScriptRun.SetColor(ARGB(255,255,0,0));
629 }
631 }
proto void CallLater(func fn, int delay=0, bool repeat=false, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
adds call into the queue with given parameters and arguments (arguments are held in memory until the ...
void ResetRunButtonColor()
ButtonWidget m_EnfScriptRun

References ARGB(), CALL_CATEGORY_SYSTEM, ScriptCallQueue::CallLater(), CGame::GetCallQueue(), and GetGame().

Referenced by OnRPCEx(), and RunEnscript().

◆ ColorWhite() [1/2]

void UIScriptedMenu::ColorWhite ( Widget  w,
Widget  enterW 
)
inlineprivate

Definition at line 942 of file cameratoolsmenu.c.

943 {
944 if ( w.IsInherited( ButtonWidget ) )
945 {
946 ButtonWidget button = ButtonWidget.Cast( w );
947 if (button)
948 {
949 button.SetTextColor( ARGB( 255, 255, 255, 255 ) );
950 button.SetAlpha( 0.75 );
951 }
952 }
953 }

References ARGB().

Referenced by Apply(), ClearAlternativeKeybind(), ClearKeybind(), ConfirmAlternateKeybindEntry(), ConfirmKeybindEntry(), Init(), OnFocusLost(), and OnMouseLeave().

◆ ColorWhite() [2/2]

void UIScriptedMenu::ColorWhite ( Widget  w,
Widget  enterW 
)
inlineprivate

Definition at line 413 of file keybindingsmenu.c.

414 {
415 #ifdef PLATFORM_WINDOWS
416 SetFocus( null );
417 #endif
418
419 ButtonWidget button = ButtonWidget.Cast( w );
420 if ( button )
421 {
422 if ( button.GetFlags() & WidgetFlags.DISABLED )
423 {
424 button.SetTextColor(ColorManager.COLOR_DISABLED_TEXT);
425 }
426 else
427 {
428 button.SetTextColor(ColorManager.COLOR_NORMAL_TEXT);
429 }
430 }
431 }

References ColorManager::COLOR_DISABLED_TEXT, ColorManager::COLOR_NORMAL_TEXT, and SetFocus().

◆ ComponentsOnChange()

private bool UIScriptedMenu::ComponentsOnChange ( Widget  w,
int  x,
int  y,
bool  finished 
)
inlineprivate

Definition at line 1298 of file sceneeditormenu.c.

1299 {
1300 for ( int i = 0; i < m_Popups.Count(); ++i )
1301 {
1302 if ( m_Popups.Get(i).OnChange(w, x, y, finished) )
1303 {
1304 return true;
1305 }
1306 }
1307
1308 return false;
1309 }
protected ref map< int, ref UIPopupScript > m_Popups
Icon y

References x, and y.

Referenced by OnChange().

◆ ComponentsOnClick()

private bool UIScriptedMenu::ComponentsOnClick ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

Definition at line 1274 of file sceneeditormenu.c.

1275 {
1276 for ( int i = 0; i < m_Popups.Count(); ++i )
1277 {
1278 if ( m_Popups.Get(i).OnClick(w, x, y, button) )
1279 {
1280 return true;
1281 }
1282 }
1283
1284 for ( int j = 0; j < m_PrWidgetsAttachments.Count(); ++j )
1285 {
1286 if ( m_PrWidgetsAttachments.Get(j).OnClick(w, x, y, button) )
1287 {
1288 return true;
1289 }
1290 }
1291
1292 return false;
1293 }
protected ref array< ref UIPropertyAttachment > m_PrWidgetsAttachments

References x, and y.

Referenced by OnClick().

◆ ComposeData()

protected void UIScriptedMenu::ComposeData ( )
inlineprivate

Inits data structure.

Definition at line 488 of file controlsxboxnew.c.

489 {
491 {
492 m_CategoryStructure = null;
494 }
495
497 {
500 }
501
502 Widget w = m_ControlsImage.GetChildren();
503 m_ImageMarkerStructure.Set(w.GetUserID(),w);
504
505 while (w.GetSibling())
506 {
507 w = w.GetSibling();
508 m_ImageMarkerStructure.Set(w.GetUserID(),w); //inits button markers with their IDs
509 }
510
512
513 #ifdef PLATFORM_XBOX
515 #else
517 #endif
518
519 //categories
520 Widget category_widget = m_PlatformHolder.GetChildren();
521 m_CategoryStructure.Set(category_widget.GetUserID(),category_widget);
522
523 while (category_widget.GetSibling())
524 {
525 category_widget = category_widget.GetSibling();
526 m_CategoryStructure.Set(category_widget.GetUserID(),category_widget);
527 }
528 }
static void UpdateConsolePresetID()
Definition: inpututils.c:209
protected ref map< int, Widget > m_ImageMarkerStructure
protected Widget m_PlatformHolder
protected Widget FindChildByID(Widget wid, int user_id)
Finds immediate child widget with a corresponding userID.
protected const int PLATFORM_ADJUST_X1
protected Widget m_ControlsImage
protected const int PLATFORM_ADJUST_PS
protected ref map< int, Widget > m_CategoryStructure
map

References FindChildByID(), and InputUtils::UpdateConsolePresetID().

Referenced by Init().

◆ ConfirmAlternateKeybindEntry()

void UIScriptedMenu::ConfirmAlternateKeybindEntry ( TIntArray  new_keys)
inlineprivate

Definition at line 161 of file keybindingsmenu.c.

162 {
164 ColorWhite( m_Apply, null );
165 m_Apply.ClearFlags( WidgetFlags.IGNOREPOINTER );
166 ColorWhite( m_Undo, null );
167 m_Undo.ClearFlags( WidgetFlags.IGNOREPOINTER );
168 }

References ColorWhite().

◆ ConfirmKeybindEntry()

void UIScriptedMenu::ConfirmKeybindEntry ( TIntArray  new_keys)
inlineprivate

Definition at line 152 of file keybindingsmenu.c.

153 {
155 ColorWhite( m_Apply, null );
156 m_Apply.ClearFlags( WidgetFlags.IGNOREPOINTER );
157 ColorWhite( m_Undo, null );
158 m_Undo.ClearFlags( WidgetFlags.IGNOREPOINTER );
159 }

References ColorWhite().

◆ Connect()

void UIScriptedMenu::Connect ( ServerBrowserEntry  server)
inlineprivate

Definition at line 571 of file serverbrowsermenunew.c.

572 {
573 SelectServer( server );
574#ifdef PLATFORM_CONSOLE
576#endif
577 Play();
578 }

References Play(), SaveFavoriteServersConsoles(), and SelectServer().

◆ ConnectBestServer()

void UIScriptedMenu::ConnectBestServer ( )
inlineprivate

Definition at line 555 of file mainmenu.c.

556 {
558 }
void ConnectLastSession()
Definition: mainmenu.c:533

References ConnectLastSession().

◆ ConnectLastSession()

void UIScriptedMenu::ConnectLastSession ( )
inlineprivate

Definition at line 533 of file mainmenu.c.

534 {
535 string ip = "";
536 string name = "";
537 int port = 0;
538
539 if(!m_ScenePC.GetIntroCharacter().IsDefaultCharacter())
540 {
541 int charID = m_ScenePC.GetIntroCharacter().GetCharacterID();
542 m_ScenePC.GetIntroCharacter().GetLastPlayedServer(charID,ip,name,port);
543 }
544
545 if( ip.Length() > 0 )
546 {
547 g_Game.ConnectFromServerBrowser( ip, port, "" );
548 }
549 else
550 {
552 }
553 }
void OpenMenuServerBrowser()
Definition: mainmenu.c:395
proto native int Length()
Returns length of string.

References g_Game, DayZIntroScene::GetIntroCharacter(), string::Length(), name, and OpenMenuServerBrowser().

Referenced by ConnectBestServer().

◆ CreateContent()

protected void UIScriptedMenu::CreateContent ( int  selected_item_id = -1)
inlineprivate

Definition at line 348 of file radialquickbarmenu.c.

349 {
350 //delete existing content
351 DeleteItems();
352
353 int category_item_count;
354
355 for ( int i = 0; i < m_Items.Count(); ++i )
356 {
357 RadialQuickbarItem quickbar_item = m_Items.Get( i );
358
359 if (quickbar_item.GetItemCategory() == m_CurrentCategory)
360 {
361 //create item card
362 Widget item_card_widget = Widget.Cast( GetGame().GetWorkspace().CreateWidgets( "gui/layouts/radial_menu/radial_quickbar/radial_quickbar_item_card.layout", m_ItemCardPanel ) );
363 quickbar_item.SetRadialItemCard( item_card_widget );
364
365 //update item card widget
366 UpdateQuickbarItemCard( quickbar_item );
367
368 //set data
369 item_card_widget.SetUserData( quickbar_item );
370
371 //set selection
372 if ( quickbar_item.GetId() == selected_item_id )
373 {
374 MarkSelected( quickbar_item.GetRadialItemCard() );
375 }
376 category_item_count++;
377 }
378 }
379
380 //adjust radial parameters for content
381 if ( /*m_Items.Count()*/category_item_count > 0 )
382 {
383 RadialMenu radial_menu = RadialMenu.GetInstance();
384 radial_menu.SetRadiusOffset( 0 );
385 radial_menu.SetExecuteDistOffset( 0.5 );
386 radial_menu.SetOffsetFromTop( 0 );
387 radial_menu.SetItemCardRadiusOffset( 0.25 );
388 radial_menu.ActivateControllerTimeout( false );
389 }
390
391 //refresh radial menu
392 RadialMenu.GetInstance().Refresh( false );
393 }
protected void UpdateQuickbarItemCard(GestureMenuItem gesture_item)
Definition: gesturesmenu.c:396
protected Widget m_ItemCardPanel
protected void MarkSelected(Widget w)
Definition: gesturesmenu.c:528
protected void DeleteItems()
protected ref array< ref RadialQuickbarItem > m_Items
void RadialMenu()
Definition: radialmenu.c:83

References GetGame(), RadialMenu(), and RadialQuickbarItem().

◆ CreateFakePlayerList()

SyncPlayerList UIScriptedMenu::CreateFakePlayerList ( int  player_count)
inlineprivate

Definition at line 396 of file ingamemenuxbox.c.

397 {
398 SyncPlayerList player_list = new SyncPlayerList;
399 player_list.m_PlayerList = new array<ref SyncPlayer>;
400 for ( int i = 0; i < player_count; i++ )
401 {
402 SyncPlayer sync_player = new SyncPlayer;
403 sync_player.m_UID = "uid" + i;
404 sync_player.m_PlayerName = "Player " + i;
405 player_list.m_PlayerList.Insert( sync_player );
406 }
407 return player_list;
408 }
string m_PlayerName
Definition: syncplayer.c:4
string m_UID
Definition: syncplayer.c:3
ref array< ref SyncPlayer > m_PlayerList
Definition: syncplayerlist.c:3

References SyncPlayerList::m_PlayerList, SyncPlayer::m_PlayerName, and SyncPlayer::m_UID.

◆ CreateGestureContent()

protected void UIScriptedMenu::CreateGestureContent ( )
inlineprivate

Definition at line 361 of file gesturesmenu.c.

362 {
363 //delete existing gesture widgets
365
366 for ( int i = 0; i < m_GestureItems.Count(); ++i )
367 {
368 GestureMenuItem gesture_item = m_GestureItems.Get( i );
369
370 //create item card
371 Widget gesture_item_card_widget = Widget.Cast( GetGame().GetWorkspace().CreateWidgets( "gui/layouts/radial_menu/radial_gestures/day_z_gesture_item_card.layout", m_GestureItemCardPanel ) );
372 gesture_item.SetRadialItemCard( gesture_item_card_widget );
373
374 //update item card widget
375 UpdateQuickbarItemCard( gesture_item );
376
377 //set data
378 gesture_item_card_widget.SetUserData( gesture_item );
379 }
380
381 //set radial parameters for content
382 if ( m_GestureItems.Count() > 0 )
383 {
384 RadialMenu radial_menu = RadialMenu.GetInstance();
385 radial_menu.SetRadiusOffset( 0 );
386 radial_menu.SetExecuteDistOffset( 0.5 );
387 radial_menu.SetOffsetFromTop( 0 );
388 radial_menu.SetItemCardRadiusOffset( 0.25 );
389 radial_menu.ActivateControllerTimeout( false );
390 }
391
392 //refresh radial menu
393 RadialMenu.GetInstance().Refresh();
394 }
protected Widget m_GestureItemCardPanel
Definition: gesturesmenu.c:108
protected void DeleteGestureItems()
Definition: gesturesmenu.c:425
protected ref array< ref GestureMenuItem > m_GestureItems
Definition: gesturesmenu.c:109
void GestureMenuItem(int id, string name, GestureCategories category)
Definition: gesturesmenu.c:23

References GestureMenuItem(), GetGame(), and RadialMenu().

◆ CreateGroupContainer()

void UIScriptedMenu::CreateGroupContainer ( )
inlineprivate

Definition at line 102 of file keybindingsmenu.c.

103 {
104 m_GroupsContainer = new KeybindingsContainer(-1,GetGame().GetInput(),layoutRoot.FindAnyWidget("TabContentsHolder"),this);
105 }

References GetGame(), and GetInput().

Referenced by Init().

◆ CreateTabs()

void UIScriptedMenu::CreateTabs ( )
inlineprivate

Definition at line 82 of file keybindingsmenu.c.

83 {
84 int sort_count = InputUtils.GetInputActionSortingMap().Count();
85 for (int i = 0; i < sort_count; i++)
86 {
87 if (InputUtils.GetInputActionSortingMap().GetElement(i) && InputUtils.GetInputActionSortingMap().GetElement(i).Count() > 0)
88 {
89 string group_name = GetUApi().SortingLocalization(InputUtils.GetInputActionSortingMap().GetKey(i));
90 group_name = Widget.TranslateString("#" + group_name); //oof
91 m_Tabber.AddTab( group_name );
92 }
93 }
94
96 {
97 m_Tabber.AddTab( Widget.TranslateString("#layout_pc_keybinding_unsorted") );
98 }
99 m_Tabber.DisableTabs(true);
100 }
static map< int, ref array< int > > GetInputActionSortingMap()
Definition: inpututils.c:229
static array< int > GetUnsortedInputActions()
Definition: inpututils.c:234
proto native owned string SortingLocalization(int index)

References InputUtils::GetInputActionSortingMap(), GetUApi(), InputUtils::GetUnsortedInputActions(), and UAInputAPI::SortingLocalization().

Referenced by Init().

◆ CustomizeCharacter()

void UIScriptedMenu::CustomizeCharacter ( )
inlineprivate

Definition at line 598 of file serverbrowsermenunew.c.

599 {
600 PPERequesterBank.GetRequester(PPERequester_ServerBrowserBlur).Stop();
601 EnterScriptedMenu(MENU_CHARACTER);
602 }
const int MENU_CHARACTER
Definition: constants.c:151

References MENU_CHARACTER.

Referenced by OnClick().

◆ DeferredDefaultsInit()

void UIScriptedMenu::DeferredDefaultsInit ( )
inlineprivate

Definition at line 284 of file keybindingsmenu.c.

285 {
286 //GetGame().GetMission().RefreshExcludes();
287 }

◆ DeleteEvent()

void UIScriptedMenu::DeleteEvent ( )
inlineprivate

Definition at line 360 of file cameratoolsmenu.c.

361 {
362
363 }

◆ DeleteGestureItems()

protected void UIScriptedMenu::DeleteGestureItems ( )
inlineprivate

Definition at line 425 of file gesturesmenu.c.

426 {
427 Widget child;
428 Widget child_to_destroy;
429
430 child = m_GestureItemCardPanel.GetChildren();
431 while ( child )
432 {
433 child_to_destroy = child;
434 child = child.GetSibling();
435
436 delete child_to_destroy;
437 }
438 }

◆ DeleteItems()

protected void UIScriptedMenu::DeleteItems ( )
inlineprivate

Definition at line 485 of file radialquickbarmenu.c.

486 {
487 Widget child;
488 Widget child_to_destroy;
489
490 child = m_ItemCardPanel.GetChildren();
491 while ( child )
492 {
493 child_to_destroy = child;
494 child = child.GetSibling();
495
496 delete child_to_destroy;
497 }
498 }

◆ DeleteKeyframe()

void UIScriptedMenu::DeleteKeyframe ( )
inlineprivate

Definition at line 292 of file cameratoolsmenu.c.

293 {
294 if ( m_SelectedKeyframe )
295 {
296 int index = m_Cameras.Find( m_SelectedKeyframe );
297 m_Cameras.Remove( index );
298 index = Math.Clamp( index, 0, m_Cameras.Count() - 1 );
299 if ( m_Cameras.Count() > 0 )
300 {
301 SelectKeyframe( m_Cameras.Get( index ) );
302 }
303 }
304 }
Definition: enmath.c:7
protected CTKeyframe m_SelectedKeyframe
static proto float Clamp(float value, float min, float max)
Clamps 'value' to 'min' if it is lower than 'min', or to 'max' if it is higher than 'max'.

References Math::Clamp().

◆ DeletePreset() [1/2]

void UIScriptedMenu::DeletePreset ( )
inlineprivate

Definition at line 93 of file sceneeditormenu.c.

94 {
95 if ( GetCurrentPresetIndex() != -1 )
96 {
97 bool result = m_ConfigDebugProfile.PresetRemove( GetCurrentPresetName() );
99 }
100 }

References GetCurrentPresetIndex(), GetCurrentPresetName(), and RefreshLists().

Referenced by OnClick().

◆ DeletePreset() [2/2]

void UIScriptedMenu::DeletePreset ( )
inlineprivate

Definition at line 1928 of file scriptconsole.c.

1929 {
1930 if ( GetCurrentPresetIndex() != -1 )
1931 {
1932 bool result = m_ConfigDebugProfile.PresetRemove( GetCurrentPresetName() );
1933 RefreshLists();
1934 }
1935 }

References GetCurrentPresetIndex(), GetCurrentPresetName(), and RefreshLists().

◆ DrawConnectingLines() [1/2]

protected void UIScriptedMenu::DrawConnectingLines ( int  index)
inlineprivate

Definition at line 120 of file controlsxboxnew.c.

121 {
122 //disconnected for now, to be finished
123 return;
124
125 m_CanvasWidget.Clear();
126
127 //TODO drawing over nyah
130
131 Widget wid_side; //left or right area
132 Widget wid_spacer; //item in the L/R areas
133 wid_side = m_VariantWidget.GetChildren();
134 typename t = EConsoleButtonsControls;
135 int side_idx;
136 int enum_value;
137 array<Widget> items_raw;
138 array<Widget> items_filtered;
139
140 while (wid_side)
141 {
142 TButtonPairingInfo button_mapping = new TButtonPairingInfo;
143
144 side_idx = wid_side.GetUserID();
145 wid_spacer = wid_side.GetChildren(); //dig into the side first..
146
147 for (int i = 1; i < EnumTools.GetEnumSize(EConsoleButtonsControls); i++)
148 {
149 items_raw = new array<Widget>;
150 items_filtered = new array<Widget>;
151 t.GetVariableValue(null, i, enum_value); //TODO
152
153 FindAllChildrenByID(wid_spacer,enum_value,items_raw);
154 if (FilterByVisible(items_raw,items_filtered) > 0) //if there are any button-relevant items..
155 {
156 button_mapping.Insert(enum_value,items_filtered);
157
158 //dump it!
159/*
160 for (int dump = 0; dump < items_filtered.Count(); dump++)
161 {
162 Print("key: " + i + " | name: " + items_filtered[dump].GetName());
163 }
164 Print("-");
165*/
166 }
167 }
168 m_AreasLR.Insert(side_idx,button_mapping);
169
170 wid_side = wid_side.GetSibling();
171 }
172
173 //dump it 2: the dumpening!
174/*
175 int count_2 = m_AreasLR.Count();
176 for (int z = 0; z < m_AreasLR.Count(); z++)
177 {
178 Print("---------");
179 Print("Area: " + z);
180 TButtonPairingInfo tmp_info = m_AreasLR.GetElement(z);
181 int count_1 = tmp_info.Count();
182 for (int zz = 0; zz < tmp_info.Count(); zz++)
183 {
184 for (int zzz = 0; zzz < tmp_info.GetElement(zz).Count(); zzz++)
185 {
186 Print("key: " + tmp_info.GetKey(zz) + " | name: " + tmp_info.GetElement(zz).Get(zzz).GetName());
187 }
188 }
189 }
190
191 Print("------------------------");
192*/
193 /*
194 map<string, ref array<int>> button_marker_groups_unflitred = new map<string, ref array<int>>;
195 map<string, ref array<int>> button_marker_groups = new map<string, ref array<int>>;
196
197 float text_widget_pos_x, text_widget_pos_y;
198 float text_widget_width, text_widget_height;
199 float dot_pos_x, dot_pos_y;
200 float dot_width, dot_height;
201 float draw_pos_x, draw_pos_y;
202
203 m_CanvasWidget.Clear();
204
205 for (int i = 0; i < m_TabScript.GetTabCount(); i++)
206 {
207 tab_array.Insert(new array<ref JsonControlMappingInfo>);
208 for (int j = 0; j < 20; j++)
209 {
210 tab_array[i].Insert(null);
211 }
212 }
213
214 // insert json info to array by index, so it is sorted
215 for (i = 0; i < control_mapping_info.Count(); i++)
216 {
217 JsonControlMappingInfo info = control_mapping_info.Get(i);
218 tab_array[info.m_TabID][info.m_TextWidgetID] = info;
219 }
220
221 // create group of buttons which are connected together with line
222 for (int l = 0; l < control_mapping_info.Count(); l++)
223 {
224 JsonControlMappingInfo info1 = control_mapping_info[l];
225 string button_name = info1.m_ButtonName;
226 int text_widget_id = info1.m_TextWidgetID;
227 if (info1.m_TabID != index)
228 {
229 continue;
230 }
231 if (!button_marker_groups_unflitred.Contains(button_name))
232 {
233 button_marker_groups_unflitred.Insert(button_name, new ref array<int>);
234 button_marker_groups_unflitred.Get(button_name).Insert(text_widget_id);
235 }
236 else
237 {
238 button_marker_groups_unflitred.Get(button_name).Insert(text_widget_id);
239 }
240 }
241
242 // we want groups which are bigger than 1
243 for (l = 0; l < button_marker_groups_unflitred.Count(); l++)
244 {
245 if (button_marker_groups_unflitred.GetElement(l).Count() > 1)
246 {
247 string key = button_marker_groups_unflitred.GetKey(l);
248 button_marker_groups.Insert(button_marker_groups_unflitred.GetKey(l), button_marker_groups_unflitred.Get(key));
249 }
250 }
251
252 Widget panel_widget;
253 Widget button_marker_widget;
254
255 for (l = 0; l < tab_array[index].Count(); l++)
256 {
257 panel_widget = layoutRoot.FindAnyWidget("PanelWidget" + l);
258 if (tab_array[index][l] != null)
259 {
260 TextWidget text_widget = TextWidget.Cast(panel_widget.FindAnyWidget("TextWidget" + l));
261
262 string key_prefix;
263 #ifdef PLATFORM_XBOX
264 key_prefix = "xb_button_marker_";
265 #else
266 #ifdef PLATFORM_PS4
267 key_prefix = "ps_button_marker_";
268 #endif
269 #endif
270
271 button_marker_widget = layoutRoot.FindAnyWidget(key_prefix + tab_array[index][l].m_ButtonName);
272 text_widget.SetText(tab_array[index][l].m_InfoText);
273 panel_widget.Show(true);
274 button_marker_widget.Show(true);
275 panel_widget.Update();
276 if (!button_marker_groups.Contains(tab_array[index][l].m_ButtonName))
277 {
278 panel_widget.GetScreenPos(text_widget_pos_x, text_widget_pos_y);
279 panel_widget.GetScreenSize(text_widget_width,text_widget_height);
280
281 button_marker_widget.GetScreenPos(dot_pos_x, dot_pos_y);
282 button_marker_widget.GetScreenSize(dot_width, dot_height);
283
284 draw_pos_y = text_widget_pos_y + text_widget_height / 2;
285 if (l < 10)
286 {
287 draw_pos_x = text_widget_pos_x + text_widget_width - 1;
288 }
289 else
290 {
291 draw_pos_x = text_widget_pos_x;
292 }
293 m_CanvasWidget.DrawLine(draw_pos_x, draw_pos_y, dot_pos_x+dot_width/2, draw_pos_y, 2, ARGBF(0.6, 1, 1, 1));
294 m_CanvasWidget.DrawLine(dot_pos_x+dot_width/2, draw_pos_y, dot_pos_x+dot_width/2, dot_pos_y+dot_height/2, 2, ARGBF(0.6, 1, 1, 1));
295 }
296 }
297 else
298 {
299 panel_widget.Show(false);
300 }
301 panel_widget.Update();
302 }
303
304 // draw connecting lines
305 for (l = 0; l < button_marker_groups.Count(); l++)
306 {
307 text_widget_pos_x = 0;
308 text_widget_pos_y = 0;
309 text_widget_width = 0;
310 text_widget_height = 0;
311 float group_point_x = 0, group_point_y = 0;
312 float first_x = 0, first_y = 0;
313
314 ref array<int> element = button_marker_groups.GetElement(l);
315 string key_name = button_marker_groups.GetKey(l);
316 #ifdef PLATFORM_XBOX
317 key_prefix = "xb_button_marker_";
318 #else
319 #ifdef PLATFORM_PS4
320 key_prefix = "ps_button_marker_";
321 #endif
322 #endif
323 button_marker_widget = layoutRoot.FindAnyWidget(key_prefix + key_name);
324
325 for (int g = 0; g < element.Count(); g++)
326 {
327 panel_widget = layoutRoot.FindAnyWidget("PanelWidget" + element[g]);
328
329 panel_widget.GetScreenPos(text_widget_pos_x, text_widget_pos_y);
330 panel_widget.GetScreenSize(text_widget_width, text_widget_height);
331
332 if (g == 0)
333 {
334 if (element[0] < 10)
335 {
336 first_x = text_widget_pos_x + text_widget_width +50;
337 }
338 else
339 {
340 first_x = text_widget_pos_x - 50;
341 }
342
343 first_y = text_widget_pos_y + text_widget_height/2;
344 }
345
346 group_point_x += text_widget_pos_x;
347 group_point_y += text_widget_pos_y;
348 if (element[0] < 10)
349 {
350 m_CanvasWidget.DrawLine(text_widget_pos_x + text_widget_width - 1, text_widget_pos_y + text_widget_height/2, text_widget_pos_x + text_widget_width +50, text_widget_pos_y + text_widget_height/2, 2, ARGBF(0.6, 1, 1, 1));
351 }
352 else
353 {
354 m_CanvasWidget.DrawLine(text_widget_pos_x, text_widget_pos_y + text_widget_height/2, text_widget_pos_x - 50, text_widget_pos_y + text_widget_height/2, 2, ARGBF(0.6, 1, 1, 1));
355 }
356 }
357 if (element[0] < 10)
358 {
359 group_point_x = group_point_x/element.Count() + text_widget_width + 50;
360 }
361 else
362 {
363 group_point_x = group_point_x/element.Count() - 50;
364 }
365
366 if (element.Count() % 2 == 0)
367 {
368 group_point_y = ( ( text_widget_pos_y + text_widget_height/2 ) - first_y ) / 2 + first_y;
369 }
370 else
371 {
372 float text_widget_pos_x_center, text_widget_pos_y_center;
373 float text_widget_width_center, text_widget_height_center;
374
375 panel_widget = layoutRoot.FindAnyWidget("PanelWidget" + element[1]);
376
377 panel_widget.GetScreenPos(text_widget_pos_x_center, text_widget_pos_y_center);
378 panel_widget.GetScreenSize(text_widget_width_center, text_widget_height_center);
379
380 group_point_y = text_widget_pos_y_center + text_widget_height_center / 2;
381 }
382
383 button_marker_widget.GetScreenPos(dot_pos_x, dot_pos_y);
384 button_marker_widget.GetScreenSize(dot_width, dot_height);
385
386 m_CanvasWidget.DrawLine(group_point_x, group_point_y, dot_pos_x+dot_width/2, group_point_y, 2, ARGBF(0.6, 1, 1, 1));
387 m_CanvasWidget.DrawLine(dot_pos_x+dot_width/2, group_point_y, dot_pos_x+dot_width/2, dot_pos_y, 2, ARGBF(0.6, 1, 1, 1));
388
389 if (element[0] < 10)
390 {
391 m_CanvasWidget.DrawLine(first_x, first_y, text_widget_pos_x + text_widget_width +50, text_widget_pos_y + text_widget_height/2, 2, ARGBF(0.6, 1, 1, 1));
392 }
393 else
394 {
395 m_CanvasWidget.DrawLine(first_x, first_y, text_widget_pos_x - 50, text_widget_pos_y + text_widget_height/2, 2, ARGBF(0.6, 1, 1, 1));
396 }
397 }
398 */
399 }
static int GetEnumSize(typename e)
Return amount of values in enum.
Definition: enconvert.c:619
protected CanvasWidget m_CanvasWidget
protected ref map< int, ref TButtonPairingInfo > m_AreasLR
protected bool FindAllChildrenByID(Widget wid, int user_id, out array< Widget > results)
Finds all immediate children widgets with corresponding userIDs.
protected int FilterByVisible(array< Widget > input, array< Widget > filtered)
returns count
protected Widget m_VariantWidget
enum map TButtonPairingInfo

References FilterByVisible(), FindAllChildrenByID(), EnumTools::GetEnumSize(), and m_VariantWidget.

Referenced by Init(), Init(), and UpdateTabContent().

◆ DrawConnectingLines() [2/2]

void UIScriptedMenu::DrawConnectingLines ( int  index)
inlineprivate

Definition at line 110 of file tutorialsmenu.c.

111 {
112 if( index == 6 )
113 {
114 m_InfoTextLeft.Show( false );
115 m_InfoTextRight.Show( false );
116 }
117 else
118 {
119 m_InfoTextLeft.Show( true );
120 m_InfoTextRight.Show( true );
123
124 map<string, ref array<int>> button_marker_groups_unflitred = new map<string, ref array<int>>;
125 map<string, ref array<int>> button_marker_groups = new map<string, ref array<int>>;
126
127 float text_widget_pos_x, text_widget_pos_y;
128 float text_widget_width, text_widget_height;
129 float dot_pos_x, dot_pos_y;
130 float dot_width, dot_height;
131 float draw_pos_x, draw_pos_y;
132
133 CanvasWidget canvas_widget = CanvasWidget.Cast( layoutRoot.FindAnyWidget("CanvasWidget_" + index) );
134 canvas_widget.Clear();
135 control_mapping_info = GetControlMappingInfo();
136
137 for( int i = 0; i < m_TabScript.GetTabCount(); i++ )
138 {
139 tab_array.Insert( new array<ref JsonControlMappingInfo> );
140 for( int j = 0; j < 30; j++ )
141 {
142 tab_array[i].Insert( NULL );
143 }
144 }
145
146 // insert json info to array by index, so it is sorted
147 for ( i = 0; i < control_mapping_info.Count(); i++ )
148 {
149 JsonControlMappingInfo info = control_mapping_info.Get( i );
150 tab_array[info.m_TabID][info.m_TextWidgetID] = info;
151 }
152
153 // create group of buttons which are connected together with line
154 for( int l = 0; l < control_mapping_info.Count(); l++ )
155 {
156 JsonControlMappingInfo info1 = control_mapping_info[l];
157 string button_name = info1.m_ButtonName;
158 int text_widget_id = info1.m_TextWidgetID;
159 if( info1.m_TabID != index )
160 {
161 continue;
162 }
163 if( !button_marker_groups_unflitred.Contains( button_name ) )
164 {
165 button_marker_groups_unflitred.Insert( button_name, new ref array<int> );
166 button_marker_groups_unflitred.Get( button_name ).Insert( text_widget_id );
167 }
168 else
169 {
170 button_marker_groups_unflitred.Get( button_name ).Insert( text_widget_id );
171 }
172 }
173
174 // we want groups which are bigger than 1
175 for( l = 0; l < button_marker_groups_unflitred.Count(); l++ )
176 {
177 if( button_marker_groups_unflitred.GetElement( l ).Count() > 1 )
178 {
179 string key = button_marker_groups_unflitred.GetKey( l );
180 button_marker_groups.Insert( button_marker_groups_unflitred.GetKey( l ), button_marker_groups_unflitred.Get( key ) );
181 }
182 }
183
184 // hide all button markers
185 Widget xbox_controls_image = layoutRoot.FindAnyWidget( "Markers_" + index );
186
187 Widget panel_widget;
188 Widget button_marker_widget;
189
190 for( l = 0; l < tab_array[index].Count(); l++ )
191 {
192 panel_widget = layoutRoot.FindAnyWidget( "PanelWidget" + l );
193 if( tab_array[index][l] != NULL )
194 {
195 TextWidget text_widget = TextWidget.Cast( panel_widget.FindAnyWidget( "TextWidget" + l ) );
196 button_marker_widget = layoutRoot.FindAnyWidget( "button_marker_" + tab_array[index][l].m_ButtonName );
197 text_widget.SetText( tab_array[index][l].m_InfoText );
198 panel_widget.Show( true );
199 panel_widget.Update();
200
201 if( !button_marker_groups.Contains(tab_array[index][l].m_ButtonName ))
202 {
203 panel_widget.GetScreenPos( text_widget_pos_x, text_widget_pos_y );
204 panel_widget.GetScreenSize( text_widget_width,text_widget_height );
205
206 button_marker_widget.GetScreenPos( dot_pos_x, dot_pos_y );
207 button_marker_widget.GetScreenSize( dot_width, dot_height );
208
209 draw_pos_y = text_widget_pos_y + text_widget_height / 2;
210
211 if( l < 15 )
212 {
213 draw_pos_x = text_widget_pos_x + text_widget_width - 1;
214 }
215 else
216 {
217 draw_pos_x = text_widget_pos_x;
218 }
219
220 canvas_widget.DrawLine( draw_pos_x, draw_pos_y, dot_pos_x+dot_width/2, draw_pos_y, 2, ARGBF( 0.6, 1, 1, 1 ) );
221 canvas_widget.DrawLine( dot_pos_x+dot_width/2, draw_pos_y, dot_pos_x+dot_width/2, dot_pos_y+dot_height/2, 2, ARGBF( 0.6, 1, 1, 1 ) );
222 }
223 }
224 else
225 {
226 panel_widget.Show( false );
227 }
228 panel_widget.Update();
229 }
230
231 // draw connecting lines
232 for( l = 0; l < button_marker_groups.Count(); l++ )
233 {
234 text_widget_pos_x = 0;
235 text_widget_pos_y = 0;
236 text_widget_width = 0;
237 text_widget_height = 0;
238 float group_point_x = 0, group_point_y = 0;
239 float first_x = 0, first_y = 0;
240
241 ref array<int> element = button_marker_groups.GetElement( l );
242 string key_name = button_marker_groups.GetKey( l );
243 button_marker_widget = layoutRoot.FindAnyWidget( "button_marker_" + key_name );
244
245 for( int g = 0; g < element.Count(); g++ )
246 {
247 panel_widget = layoutRoot.FindAnyWidget( "PanelWidget" + element[g] );
248
249 panel_widget.GetScreenPos( text_widget_pos_x, text_widget_pos_y );
250 panel_widget.GetScreenSize( text_widget_width, text_widget_height );
251
252 if( g == 0 )
253 {
254 if( element[0] < 15 )
255 {
256 first_x = text_widget_pos_x + text_widget_width +50;
257 }
258 else
259 {
260 first_x = text_widget_pos_x - 50;
261 }
262 first_y = text_widget_pos_y + text_widget_height/2;
263
264 }
265
266 group_point_x += text_widget_pos_x;
267 group_point_y += text_widget_pos_y;
268
269 if( element[0] < 15 )
270 {
271 canvas_widget.DrawLine( text_widget_pos_x + text_widget_width - 1, text_widget_pos_y + text_widget_height/2, text_widget_pos_x + text_widget_width +50, text_widget_pos_y + text_widget_height/2, 2, ARGBF( 0.6, 1, 1, 1 ) );
272 }
273 else
274 {
275 canvas_widget.DrawLine( text_widget_pos_x, text_widget_pos_y + text_widget_height/2, text_widget_pos_x - 50, text_widget_pos_y + text_widget_height/2, 2, ARGBF( 0.6, 1, 1, 1 ) );
276 }
277 }
278
279 if( element[0] < 15 )
280 {
281 group_point_x = group_point_x/element.Count() + text_widget_width + 50;
282 }
283 else
284 {
285 group_point_x = group_point_x/element.Count() - 50;
286 }
287
288 group_point_y = group_point_y/element.Count() + text_widget_height/2;
289
290 button_marker_widget.GetScreenPos( dot_pos_x, dot_pos_y );
291 button_marker_widget.GetScreenSize( dot_width, dot_height );
292
293 canvas_widget.DrawLine( group_point_x, group_point_y, dot_pos_x+dot_width/2, group_point_y, 2, ARGBF( 0.6, 1, 1, 1 ) );
294 canvas_widget.DrawLine( dot_pos_x+dot_width/2, group_point_y, dot_pos_x+dot_width/2, dot_pos_y, 2, ARGBF( 0.6, 1, 1, 1 ) );
295
296 if( element[0] < 15 )
297 {
298 canvas_widget.DrawLine( first_x, first_y, text_widget_pos_x + text_widget_width +50, text_widget_pos_y + text_widget_height/2, 2, ARGBF( 0.6, 1, 1, 1 ) );
299 }
300 else
301 {
302 canvas_widget.DrawLine( first_x, first_y, text_widget_pos_x - 50, text_widget_pos_y + text_widget_height/2, 2, ARGBF( 0.6, 1, 1, 1 ) );
303 }
304 }
305 }
306 }
protected Widget m_InfoTextRight
Definition: tutorialsmenu.c:12
protected array< ref JsonControlMappingInfo > GetControlMappingInfo()
protected Widget m_InfoTextLeft
Definition: tutorialsmenu.c:11
proto native void DrawLine(float x1, float y1, float x2, float y2, float width, int color)
int ARGBF(float fa, float fr, float fg, float fb)
Converts <0.0, 1.0> ARGB into color.
Definition: proto.c:332

References ARGBF(), Widget::DrawLine(), GetControlMappingInfo(), JsonControlMappingInfo::m_ButtonName, JsonControlMappingInfo::m_TabID, m_TabScript, and JsonControlMappingInfo::m_TextWidgetID.

◆ DrawItems()

static void UIScriptedMenu::DrawItems ( string  type,
float  distance = 0 
)
inlinestaticprivate

need better logic for cleaning

Definition at line 760 of file scriptconsole.c.

761 {
762 if (!distance)
763 {
764 distance = DRAW_DISTANCE;
765 }
766 array<Object> objects = new array<Object>;
768
769 GetGame().GetObjectsAtPosition(GetGame().GetPlayer().GetPosition(), distance, objects, proxies);
770 int i = 0;
771
772 foreach (Object o: objects)
773 {
774 if (o.IsKindOf(type))
775 {
776 i++;
777 Shape shape = Shape.CreateSphere(COLOR_RED, ShapeFlags.TRANSP|ShapeFlags.NOOUTLINE|ShapeFlags.NOZBUFFER, o.GetPosition() + "0 30 0", 1);
778 vector lines[2];
779 lines[0] = o.GetPosition();
780 lines[1] = o.GetPosition() + "0 30 0";
781 Shape line = Shape.CreateLines(COLOR_RED, ShapeFlags.TRANSP|ShapeFlags.NOOUTLINE|ShapeFlags.NOZBUFFER, lines, 2);
782 m_DebugShapes.Insert(shape);
783 m_DebugShapes.Insert(line);
784 }
785 }
786
788 //GetGame().GetCallQueue(CALL_CATEGORY_GAMEPLAY).CallLaterByName(this, "DrawItemsClear", 5000);
789 Debug.Log(string.Format("found %1 instances of type %1", i, type));
790 }
proto native void GetObjectsAtPosition(vector pos, float radius, out array< Object > objects, out array< CargoBase > proxyCargos)
Returns list of all objects in circle "radius" around position "pos".
Definition: debug.c:14
static void Log(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message with normal prio.
Definition: debug.c:130
static float DRAW_DISTANCE
Definition: scriptconsole.c:21
static ref array< Shape > m_DebugShapes
Definition: scriptconsole.c:22
const int COLOR_RED
Definition: constants.c:63
ShapeFlags
Definition: endebug.c:126
class DiagMenu Shape
don't call destructor directly. Use Destroy() instead

References COLOR_RED, DRAW_DISTANCE, GetGame(), CGame::GetObjectsAtPosition(), GetPlayer(), GetPosition, Debug::Log(), and Shape.

Referenced by OnClick(), and OnKeyDown().

◆ DrawItemsClear()

static void UIScriptedMenu::DrawItemsClear ( )
inlinestaticprivate

Definition at line 793 of file scriptconsole.c.

794 {
795 foreach (Shape s: m_DebugShapes)
796 {
797 s.Destroy();
798 }
799 m_DebugShapes.Clear();
800 }

References Shape.

Referenced by OnClick().

◆ EarlyAccessMenu()

void UIScriptedMenu::EarlyAccessMenu ( )
inlineprivate

Definition at line 3 of file earlyaccessmenu.c.

4 {
5 }

◆ EnscriptHistoryBack()

void UIScriptedMenu::EnscriptHistoryBack ( )
inlineprivate

Definition at line 525 of file scriptconsole.c.

526 {
527 int history_index;
528
529 if ( m_EnfScriptEdit )
530 {
531 if ( !m_ScriptServer )//client
532 {
534 history_index = m_EnscriptConsoleHistory.Count() - m_EnscriptHistoryRow - 1;
535 if ( history_index > -1 )
536 {
537 m_EnfScriptEdit.SetText( m_EnscriptConsoleHistory.Get( history_index ) );
538 }
540 }
541 else//server
542 {
545 if ( history_index > -1 )
546 {
547 m_EnfScriptEdit.SetText( m_EnscriptConsoleHistoryServer.Get( history_index ) );
548 }
550 }
551 }
552 }
MultilineEditBoxWidget m_EnfScriptEdit
ref TStringArray m_EnscriptConsoleHistoryServer
ref TStringArray m_EnscriptConsoleHistory
int m_EnscriptHistoryRowServer

Referenced by HistoryBack().

◆ EnscriptHistoryForward()

void UIScriptedMenu::EnscriptHistoryForward ( )
inlineprivate

Definition at line 570 of file scriptconsole.c.

571 {
572 if ( m_EnfScriptEdit )
573 {
574 int history_index;
575 if ( !m_ScriptServer )//client
576 {
578 history_index = m_EnscriptConsoleHistory.Count() - m_EnscriptHistoryRow - 1;
579 if ( history_index < m_EnscriptConsoleHistory.Count() )
580 {
581 m_EnfScriptEdit.SetText( m_EnscriptConsoleHistory.Get( history_index ) );
582 }
584
585 }
586 else//server
587 {
590 if ( history_index < m_EnscriptConsoleHistoryServer.Count() )
591 {
592 m_EnfScriptEdit.SetText( m_EnscriptConsoleHistoryServer.Get( history_index ) );
593 }
595 }
596
597 }
598 }

Referenced by HistoryForward().

◆ ExecuteSelectedCategory()

protected void UIScriptedMenu::ExecuteSelectedCategory ( Widget  w)
inlineprivate

Definition at line 570 of file gesturesmenu.c.

571 {
572 //only when category is not picked yet
573 if ( w )
574 {
575 GestureMenuItem gesture_item;
576 w.GetUserData( gesture_item );
577
578 //is category
579 if ( !instance.m_IsCategorySelected && gesture_item.GetCategory() == GestureCategories.CATEGORIES )
580 {
581 //set category selected
582 instance.m_IsCategorySelected = true;
583
584 //show selected category gestures
585 GetGestureItems( m_GestureItems, gesture_item.GetID() );
587 RefreshGestures( gesture_item.GetID() );
588
589 //update category name text
590 UpdateCategoryName( gesture_item.GetName() );
591 }
592 /*else
593 {
594 ExecuteSelectedItem();
595 }*/
596 }
597 }
protected void CreateGestureContent()
Definition: gesturesmenu.c:361
protected void GetGestureItems(out ref array< ref GestureMenuItem > gesture_items, GestureCategories category)
Definition: gesturesmenu.c:290
GestureCategories
Definition: gesturesmenu.c:2

References GestureMenuItem().

◆ ExecuteSelectedItem()

protected void UIScriptedMenu::ExecuteSelectedItem ( )
inlineprivate

Definition at line 599 of file gesturesmenu.c.

600 {
601 if ( instance.m_IsCategorySelected && instance.m_SelectedItem )
602 {
603 if ( !GetGame().IsDedicatedServer() )
604 {
605 PlayerBase player = PlayerBase.Cast( GetGame().GetPlayer() );
606
607 GestureMenuItem gesture_item;
608 instance.m_SelectedItem.GetUserData( gesture_item );
609
610 if ( gesture_item )
611 {
612 if( player.GetEmoteManager() )
613 {
614 player.GetEmoteManager().CreateEmoteCBFromMenu( gesture_item.GetID() );
615 }
616 }
617 }
618 }
619 }

References GestureMenuItem(), GetGame(), and GetPlayer().

◆ Exit() [1/3]

void UIScriptedMenu::Exit ( )
inlineprivate

Definition at line 159 of file logoutmenu.c.

160 {
161 // exit menu and logout screen
163
164 // stop updating of logout screen
166
167 // go back to main menu
169 }
void AbortMission()
Definition: gameplay.c:731

References Mission::AbortMission(), CALL_CATEGORY_SYSTEM, Mission::Continue(), CGame::GetCallQueue(), GetGame(), CGame::GetMission(), and ScriptCallQueue::Remove().

Referenced by OnClick(), Update(), and UpdateTime().

◆ Exit() [2/3]

void UIScriptedMenu::Exit ( )
inlineprivate

Definition at line 514 of file mainmenu.c.

515 {
516 GetGame().GetUIManager().ShowDialog("#main_menu_exit", "#main_menu_exit_desc", IDC_MAIN_QUIT, DBT_YESNO, DBB_YES, DMT_QUESTION, this);
517 }
proto native void ShowDialog(string caption, string text, int id, int butts, int def, int type, UIScriptedMenu handler)
Shows message dialog.
const int IDC_MAIN_QUIT
Definition: constants.c:123

References GetGame(), CGame::GetUIManager(), IDC_MAIN_QUIT, and UIManager::ShowDialog().

◆ Exit() [3/3]

void UIScriptedMenu::Exit ( )
inlineprivate

Definition at line 345 of file mainmenuconsoles.c.

346 {
347 GetGame().GetUIManager().ShowDialog("#main_menu_exit", "#main_menu_exit_desc", IDC_MAIN_QUIT, DBT_YESNO, DBB_YES, DMT_QUESTION, this);
348 }

References GetGame(), CGame::GetUIManager(), IDC_MAIN_QUIT, and UIManager::ShowDialog().

◆ ExpandHierarchy()

void UIScriptedMenu::ExpandHierarchy ( int  row)
inlineprivate

Definition at line 2390 of file scriptconsole.c.

2391 {
2392 if( row <= -1 && row >= m_ConfigHierarchyTextListbox.GetNumItems() )
2393 {
2394 return;
2395 }
2396
2397 TStringArray variables;
2398
2399 // get current row data
2400 ConfigParamsEx config_params;
2401 m_ConfigHierarchyTextListbox.GetItemData( row, 0, config_params );
2402
2403 string config_path = config_params.param4;
2404 int deep = config_params.param5;
2405
2406 string offset = "";
2407 for ( int i = 0; i < deep; i++)
2408 {
2409 offset = offset + " ";
2410 }
2411
2412 // change selected node
2413 variables = m_ModuleConfigViewer.GetConfigHierarchy( config_path );
2414 int childrens_count = variables.Count();
2415 m_ConfigHierarchyTextListbox.SetItem( row, offset + "- " + config_params.param2, new ConfigParamsEx( true, config_params.param2, childrens_count, config_path, deep,config_params.param6 ), 0 );
2416
2417 offset = offset + " ";
2418
2419 // render childrens
2420 deep = deep + 1;
2421 childrens_count = 0;
2422 for ( i = variables.Count() - 1; i >= 0; i-- )
2423 {
2424 string new_config_path = ( config_path + " " + variables.Get(i) ).Trim();
2425 m_ConfigHierarchyTextListbox.AddItem( offset + "+ " + variables.Get(i), new ConfigParamsEx( false, variables.Get(i), childrens_count, new_config_path, deep,config_params.param2 ), 0, (row + 1) );
2426 }
2427 }

Referenced by OnClick().

◆ FilterByVisible()

protected int UIScriptedMenu::FilterByVisible ( array< Widget input,
array< Widget filtered 
)
inlineprivate

returns count

Definition at line 617 of file controlsxboxnew.c.

618 {
619 for (int i = 0; i < input.Count(); i++)
620 {
621 if (input[i].IsVisible())
622 {
623 filtered.Insert(input[i]);
624 }
625 }
626
627 return filtered.Count();
628 }
proto native bool IsVisible()

References IsVisible().

Referenced by DrawConnectingLines().

◆ FilterFocus()

void UIScriptedMenu::FilterFocus ( bool  focus)
inlineprivate

Definition at line 304 of file serverbrowsermenunew.c.

305 {
306 #ifdef PLATFORM_CONSOLE
307 TextWidget con_text = TextWidget.Cast( layoutRoot.FindAnyWidget( "ConnectText" ) );
308 TextWidget ref_text = TextWidget.Cast( layoutRoot.FindAnyWidget( "RefreshText" ) );
309 TextWidget res_text = TextWidget.Cast( layoutRoot.FindAnyWidget( "ResetText" ) );
310
311 if ( focus )
312 {
313 //con_text.SetText( "#str_settings_menu_root_toolbar_bg_consoletoolbar_toggle_toggletext0" );
314 con_text.SetText( "#dialog_change" );
315 ref_text.SetText( "#server_browser_menu_refresh" );
316 res_text.SetText( "#server_browser_menu_reset_filters" );
317
318 con_text.Update();
319 ref_text.Update();
320 res_text.Update();
321 }
322 #endif
323 }

◆ FindAllChildrenByID()

protected bool UIScriptedMenu::FindAllChildrenByID ( Widget  wid,
int  user_id,
out array< Widget results 
)
inlineprivate

Finds all immediate children widgets with corresponding userIDs.

Definition at line 602 of file controlsxboxnew.c.

603 {
604 Widget child = wid.GetChildren();
605 while (child)
606 {
607 if (child.GetUserID() == user_id)
608 {
609 results.Insert(child);
610 }
611 child = child.GetSibling();
612 }
613 return (results && results.Count() > 0);
614 }

Referenced by DrawConnectingLines().

◆ FindChildByID()

protected Widget UIScriptedMenu::FindChildByID ( Widget  wid,
int  user_id 
)
inlineprivate

Finds immediate child widget with a corresponding userID.

Definition at line 587 of file controlsxboxnew.c.

588 {
589 Widget ret = wid.GetChildren();
590 while (ret)
591 {
592 if (ret.GetUserID() == user_id)
593 {
594 return ret;
595 }
596 ret = ret.GetSibling();
597 }
598 return ret;
599 }

Referenced by ComposeData(), and UpdateTabContent().

◆ FindInHierarchy()

void UIScriptedMenu::FindInHierarchy ( string  class_name)
inlineprivate

Definition at line 2351 of file scriptconsole.c.

2352 {
2353 m_ConfigHierarchyTextListbox.ClearItems();
2354 m_ConfigVariablesTextListbox.ClearItems();
2355
2356 class_name.ToLower( );
2357 string config_base_path = "configfile";
2358
2359 string filter_lower = class_name;
2360 filter_lower.ToLower( );
2361
2362 TStringArray filters = new TStringArray;
2363 filter_lower.Split( " ", filters );
2364
2365 for ( int i = 0; i < m_BaseConfigClassesToggled.Count(); i++ )
2366 {
2367 string config_root = m_BaseConfigClassesToggled.Get(i);
2368 string config_path = config_base_path + " " + config_root;
2369 TStringArray variables = m_ModuleConfigViewer.GetConfigHierarchy( config_path );
2370
2371 for ( int j = 0; j < variables.Count(); j++ )
2372 {
2373 string variable = variables.Get(j);
2374 string variable_lower = variable;
2375 variable_lower.ToLower();
2376
2377 for ( int k = 0; k < filters.Count(); k++ )
2378 {
2379 if ( variable_lower.Contains(filters.Get(k)))
2380 {
2381 string new_config_path = ( config_path + " " + variable ).Trim();
2382 m_ConfigHierarchyTextListbox.AddItem( "+ " + variable, new ConfigParamsEx( false, variable, 0, new_config_path, 0, config_root ), 0);
2383 break;
2384 }
2385 }
2386 }
2387 }
2388 }
class OptionSelectorMultistate extends OptionSelector class_name

References class_name, string::Contains(), string::Split(), and string::ToLower().

Referenced by ChangeConfigFilter().

◆ GameRespawn()

protected void UIScriptedMenu::GameRespawn ( bool  random)
inlineprivate

Definition at line 351 of file ingamemenu.c.

352 {
355
356 PlayerBase player = PlayerBase.Cast(GetGame().GetPlayer());
357 if (player)
358 {
359 GetGame().GetCallQueue(CALL_CATEGORY_GUI).CallLater(player.ShowDeadScreen, DayZPlayerImplement.DEAD_SCREEN_DELAY, false, true, 0);
360 }
361
362 MissionGameplay missionGP = MissionGameplay.Cast(GetGame().GetMission());
363 missionGP.DestroyAllMenus();
364 missionGP.SetPlayerRespawning(true);
365
367 Close();
368 }
proto native void RespawnPlayer()
void SetRandomCharacterForced(bool state)
Definition: gameplay.c:1033
const int CALL_CATEGORY_GUI
Definition: tools.c:9

References CALL_CATEGORY_GUI, ScriptCallQueue::CallLater(), Close(), Mission::Continue(), CGame::GetCallQueue(), GetGame(), CGame::GetMenuDefaultCharacterData(), CGame::GetMission(), GetPlayer(), CGame::RespawnPlayer(), and MenuDefaultCharacterData::SetRandomCharacterForced().

Referenced by MenuRequestRespawn(), OnClick_Respawn(), and OnModalResult().

◆ GameRetry()

void UIScriptedMenu::GameRetry ( bool  random)
inlineprivate

Definition at line 353 of file ingamemenuxbox.c.

354 {
355 if ( GetGame().IsMultiplayer() )
356 {
360 //turns off dead screen, hides HUD for countdown
361 //---------------------------------------------------
362 PlayerBase player = PlayerBase.Cast(GetGame().GetPlayer());
363 if(player)
364 {
365 GetGame().GetCallQueue(CALL_CATEGORY_GUI).CallLater(player.ShowDeadScreen, DayZPlayerImplement.DEAD_SCREEN_DELAY, false, false);
366 }
367
368 MissionGameplay missionGP = MissionGameplay.Cast(GetGame().GetMission());
369 missionGP.DestroyAllMenus();
370 missionGP.SetPlayerRespawning(true);
371 //---------------------------------------------------
372 GetGame().GetCallQueue(CALL_CATEGORY_GUI).Call(missionGP.Continue);
373 }
374 else
375 {
377 }
378 //Close();
379 }
proto void Call(func fn, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
adds call into the queue with given parameters and arguments (arguments are held in memory until the ...
bool CloseAll()
Close all opened menus.
Definition: uimanager.c:80

References ScriptCallQueue::Call(), CALL_CATEGORY_GUI, ScriptCallQueue::CallLater(), UIManager::CloseAll(), CGame::GetCallQueue(), GetGame(), CGame::GetMenuDefaultCharacterData(), GetPlayer(), CGame::GetUIManager(), and MenuDefaultCharacterData::SetRandomCharacterForced().

Referenced by MenuRequestRespawn(), OnClick(), and OnModalResult().

◆ GenderChanged()

void UIScriptedMenu::GenderChanged ( )
inlineprivate

Definition at line 281 of file charactercreationmenu.c.

282 {
283 ECharGender gender = ECharGender.Male;
284
285 if ( m_GenderSelector.GetStringValue() == "Female" )
286 {
287 gender = ECharGender.Female;
288 }
289
290 m_Scene.GetIntroCharacter().SetCharacterGender( gender );
291
292 m_SkinSelector.LoadNewValues( m_Scene.GetIntroCharacter().GetCharList( gender ) , 0 );
293 m_SkinSelector.SetRandomValue();
294 SetCharacterSaved(false);
295 }
ECharGender
Definition: echargender.c:2

References DayZIntroSceneXbox::GetIntroCharacter(), and SetCharacterSaved().

◆ GesturesMenu()

void UIScriptedMenu::GesturesMenu ( )
inlineprivate

Definition at line 131 of file gesturesmenu.c.

132 {
134
135 if ( !instance )
136 {
137 instance = this;
138 }
139
141 }
ScriptInvoker GetOnInputPresetChanged()
Definition: gameplay.c:817
proto void Insert(func fn)
insert method to list
protected void OnInputPresetChanged()

References GetGame(), CGame::GetMission(), Mission::GetOnInputPresetChanged(), ScriptInvoker::Insert(), and OnInputPresetChanged().

◆ GetActor()

PlayerBase UIScriptedMenu::GetActor ( int  index)
inlineprivate

Definition at line 170 of file cameratoolsmenu.c.

171 {
172 if ( index > -1 && index < m_Actors.Count() )
173 return PlayerBase.Cast( m_Actors.Get( index ).GetObj() );
174 else
175 return null;
176 }

◆ GetBlurValue()

float UIScriptedMenu::GetBlurValue ( )
inlineprivate

Definition at line 714 of file cameratoolsmenu.c.

715 {
716 return m_BlurEditWidget.GetText().ToFloat();
717 }
protected EditBoxWidget m_BlurEditWidget

◆ GetCameraLine()

Param6< vector, vector, float, float, float, int > UIScriptedMenu::GetCameraLine ( int  index)
inlineprivate

Definition at line 370 of file cameratoolsmenu.c.

371 {
372 if ( index > -1 && index < m_CameraLines.Count() )
373 {
374 return m_CameraLines[index];
375 }
376 return null;
377 }
protected ref array< ref Param6< vector, vector, float, float, float, int > > m_CameraLines

◆ GetCameraLookDir()

vector UIScriptedMenu::GetCameraLookDir ( )
inlineprivate

Definition at line 456 of file cameratoolsmenu.c.

457 {
458 vector dir = FreeDebugCamera.GetInstance().GetDirection();
459 vector from = FreeDebugCamera.GetInstance().GetPosition();
460 vector to = from + ( dir * 10000 );
461 vector contact_pos;
462 vector contact_dir;
463 int contact_component;
464 Object ev_obj;
465 if ( m_SelectedEvent )
466 ev_obj = GetActor( m_SelectedEvent.GetEventActor() );
467 if ( DayZPhysics.RaycastRV(from, to, contact_pos, contact_dir, contact_component, null, null, ev_obj) )
468 {
469 return contact_pos;
470 }
471
472 return "0 0 0";
473 }
static proto bool RaycastRV(vector begPos, vector endPos, out vector contactPos, out vector contactDir, out int contactComponent, set< Object > results=NULL, Object with=NULL, Object ignore=NULL, bool sorted=false, bool ground_only=false, int iType=ObjIntersectView, float radius=0.0, CollisionFlags flags=CollisionFlags.NEARESTCONTACT)
Raycasts world by given parameters.
protected CTEvent m_SelectedEvent
PlayerBase GetActor(int index)

References DayZPhysics::RaycastRV().

◆ GetChannelName()

static string UIScriptedMenu::GetChannelName ( ChatChannel  channel)
inlinestaticprivate

Definition at line 85 of file chatinputmenu.c.

86 {
87 switch(channel)
88 {
89 case CCSystem:
90 return "System";
91 case CCAdmin:
92 return "Admin";
93 case CCDirect:
94 return "Direct";
95 case CCMegaphone:
96 return "Megaphone";
97 case CCTransmitter:
98 return "Radio";
99 case CCPublicAddressSystem:
100 return "PAS";
101 }
102
103 return "";
104 }

Referenced by UpdateChannel().

◆ GetControlMappingInfo()

protected array< ref JsonControlMappingInfo > UIScriptedMenu::GetControlMappingInfo ( )
inlineprivate

Definition at line 308 of file tutorialsmenu.c.

309 {
311 string file_path = PATH_MOUSEKEY; //remains set for PC vatiant
312 string profile_name = "";
313 GetGame().GetInput().GetProfileName(GetGame().GetInput().GetCurrentProfile(),profile_name);
314
315#ifdef PLATFORM_CONSOLE
316 if ( !GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer() )
317 {
318 if (profile_name == "#STR_UAPRESET_0")
319 {
320 #ifdef PLATFORM_XBOX
321 file_path = PATH_X1_OLD;
322 #else
323 file_path = PATH_PS_OLD;
324 #endif
325 }
326 else if (profile_name == "#STR_UAPRESET_1")
327 {
328 #ifdef PLATFORM_XBOX
329 file_path = PATH_X1_NEW;
330 #else
331 file_path = PATH_PS_NEW;
332 #endif
333 }
334 else
335 {
336 ErrorEx("Invalid file path!");
337 file_path = "";
338 }
339 }
340#endif
341 FileHandle file_handle = OpenFile(file_path, FileMode.READ);
343
344 string js_error = "";
345 string line_content = "";
346 string content = "";
347 if ( file_handle )
348 {
349 while ( FGets( file_handle, line_content ) >= 0 )
350 {
351 content += line_content;
352 }
353 CloseFile( file_handle );
354
355 if ( js.ReadFromString( control_mapping_info, content, js_error ) )
356 {
357 return control_mapping_info;
358 }
359 else
360 {
361 ErrorEx("JSON ERROR => [TutorialsMenu]: " + js_error);
362 }
363 }
364 else
365 {
366 ErrorEx("FILEHANDLE ERROR => [TutorialsMenu]: " + js_error);
367 }
368
369 return control_mapping_info;
370 }
proto native Input GetInput()
proto int GetProfileName(int profile_index, out string name)
gets profile by index
Class for sending RPC over network.
Definition: gameplay.c:50
proto bool ReadFromString(void variable_in, string jsonString, out string error)
Json string deserialization to script variable.
protected const string PATH_PS_NEW
Definition: tutorialsmenu.c:7
protected const string PATH_X1_NEW
Definition: tutorialsmenu.c:5
protected const string PATH_MOUSEKEY
Definition: tutorialsmenu.c:3
protected const string PATH_X1_OLD
Definition: tutorialsmenu.c:4
protected const string PATH_PS_OLD
Definition: tutorialsmenu.c:6
enum ShapeType ErrorEx
FileMode
Definition: ensystem.c:383
proto void CloseFile(FileHandle file)
Close the File.
proto int FGets(FileHandle file, string var)
Get line from file, every next call of this function returns next line.
proto FileHandle OpenFile(string name, FileMode mode)
Opens File.
int[] FileHandle
Definition: ensystem.c:390

References CloseFile(), ErrorEx, FGets(), GetGame(), CGame::GetInput(), GetInput(), Input::GetProfileName(), OpenFile(), PATH_MOUSEKEY, PATH_PS_NEW, PATH_PS_OLD, PATH_X1_NEW, PATH_X1_OLD, and JsonSerializer::ReadFromString().

Referenced by DrawConnectingLines(), and DrawConnectingLines().

◆ GetCurrentItemIndex() [1/2]

int UIScriptedMenu::GetCurrentItemIndex ( )
inlineprivate

◆ GetCurrentItemIndex() [2/2]

int UIScriptedMenu::GetCurrentItemIndex ( )
inlineprivate

Definition at line 2177 of file scriptconsole.c.

2178 {
2179 return m_PresetItemsTextListbox.GetSelectedRow();
2180 }

◆ GetCurrentItemName() [1/2]

string UIScriptedMenu::GetCurrentItemName ( )
inlineprivate

Definition at line 201 of file sceneeditormenu.c.

202 {
203 if ( GetCurrentItemIndex() != -1 )
204 {
205 string item_name;
206 m_PresetItemsTextListbox.GetItemText( GetCurrentItemIndex(), 0, item_name );
207 return item_name;
208 }
209 return "";
210 }

References GetCurrentItemIndex().

Referenced by LateInit(), OnClick(), OnItemSelected(), and Dispatcher::ScriptConsoleGetSelectedItem().

◆ GetCurrentItemName() [2/2]

string UIScriptedMenu::GetCurrentItemName ( )
inlineprivate

Definition at line 2138 of file scriptconsole.c.

2139 {
2140 if ( GetCurrentItemIndex() != -1 )
2141 {
2142 string item_name;
2143 m_PresetItemsTextListbox.GetItemText( GetCurrentItemIndex(), 0, item_name );
2144 return item_name;
2145 }
2146 return "";
2147 }

References GetCurrentItemIndex().

◆ GetCurrentObjectName() [1/2]

string UIScriptedMenu::GetCurrentObjectName ( )
inlineprivate

Definition at line 212 of file sceneeditormenu.c.

213 {
214 int selected_row_index = m_ClWgtLbxClassesList.GetSelectedRow();
215 if ( selected_row_index != -1 )
216 {
217 string item_name;
218 m_ClWgtLbxClassesList.GetItemText( selected_row_index, 0, item_name );
219 return item_name;
220 }
221 return "";
222 }

Referenced by LateInit(), OnDoubleClick(), OnItemSelected(), and SelectObject().

◆ GetCurrentObjectName() [2/2]

string UIScriptedMenu::GetCurrentObjectName ( )
inlineprivate

Definition at line 2149 of file scriptconsole.c.

2150 {
2151 int selected_row_index = m_ObjectsTextListbox.GetSelectedRow();
2152 if ( selected_row_index != -1 )
2153 {
2154 string item_name;
2155 m_ObjectsTextListbox.GetItemText( selected_row_index, 0, item_name );
2156 return item_name;
2157 }
2158 return "";
2159 }

◆ GetCurrentPositionName()

string UIScriptedMenu::GetCurrentPositionName ( )
inlineprivate

Definition at line 2161 of file scriptconsole.c.

2162 {
2163 if ( m_PositionsListbox.GetSelectedRow() != -1 )
2164 {
2165 string position_name;
2166 m_PositionsListbox.GetItemText( m_PositionsListbox.GetSelectedRow(), 0, position_name );
2167 return position_name;
2168 }
2169 return "";
2170 }
TextListboxWidget m_PositionsListbox

Referenced by OnClick(), and OnItemSelected().

◆ GetCurrentPresetIndex() [1/2]

◆ GetCurrentPresetIndex() [2/2]

int UIScriptedMenu::GetCurrentPresetIndex ( )
inlineprivate

Definition at line 2172 of file scriptconsole.c.

2173 {
2174 return m_PresetsTextListbox.GetSelectedRow();
2175 }

◆ GetCurrentPresetName() [1/2]

string UIScriptedMenu::GetCurrentPresetName ( )
inlineprivate

Definition at line 188 of file sceneeditormenu.c.

189 {
190 int index = GetCurrentPresetIndex();
191 // load preset items list
192 if ( index > -1 && index < m_PresetsTextListbox.GetNumItems() )
193 {
194 PresetParams item_params_array;
195 m_PresetsTextListbox.GetItemData( index, 0, item_params_array );
196 return item_params_array.param1;
197 }
198 return "";
199 }
Param3< string, bool, bool > PresetParams
Definition: scriptconsole.c:1

References GetCurrentPresetIndex().

Referenced by AddItemToPreset(), DeletePreset(), ItemMoveDown(), ItemMoveUp(), OnChange(), OnClick(), OnDoubleClick(), RemoveItemFromPreset(), RenamePreset(), RenderPresetItems(), SelectPreset(), SetDefaultPreset(), and ShowItemButtons().

◆ GetCurrentPresetName() [2/2]

string UIScriptedMenu::GetCurrentPresetName ( )
inlineprivate

Definition at line 2125 of file scriptconsole.c.

2126 {
2127 int index = GetCurrentPresetIndex();
2128 // load preset items list
2129 if ( index > -1 && index < m_PresetsTextListbox.GetNumItems() )
2130 {
2131 PresetParams item_params_array;
2132 m_PresetsTextListbox.GetItemData( index, 0, item_params_array );
2133 return item_params_array.param1;
2134 }
2135 return "";
2136 }

References GetCurrentPresetIndex().

◆ GetCurrentTab()

KeybindingsContainer UIScriptedMenu::GetCurrentTab ( )
inlineprivate

Definition at line 499 of file keybindingsmenu.c.

500 {
501 return m_GroupsContainer;
502 }

References m_GroupsContainer.

◆ GetFavoritedServerIds()

TStringArray UIScriptedMenu::GetFavoritedServerIds ( )
inlineprivate

Definition at line 113 of file serverbrowsermenunew.c.

114 {
115 return m_Favorites;
116 }

References m_Favorites.

◆ GetFiltredConfigClasses()

TStringArray UIScriptedMenu::GetFiltredConfigClasses ( string  search_string,
TStringArray  array_ret 
)
inlineprivate

Definition at line 1210 of file sceneeditormenu.c.

1211 {
1212 TStringArray searching_in = new TStringArray;
1213 searching_in.Insert(CFG_VEHICLESPATH);
1214 searching_in.Insert(CFG_WEAPONSPATH);
1215 searching_in.Insert(CFG_MAGAZINESPATH);
1216
1217 array_ret.Clear();
1218
1219 search_string.ToLower();
1220
1221 for ( int s = 0; s < searching_in.Count(); ++s )
1222 {
1223 string config_path = searching_in.Get(s);
1224
1225 int objects_count = g_Game.ConfigGetChildrenCount(config_path);
1226 for (int i = 0; i < objects_count; i++)
1227 {
1228 string childName;
1229 g_Game.ConfigGetChildName(config_path, i, childName);
1230
1231 int scope = g_Game.ConfigGetInt(config_path + " " + childName + " scope");
1232 if ( scope == 0 )
1233 {
1234 continue;
1235 }
1236
1237 string nchName = childName;
1238 nchName.ToLower();
1239
1240 if ( nchName.Contains(search_string))
1241 {
1242 array_ret.Insert(childName);
1243 }
1244 }
1245 }
1246
1247 return array_ret;
1248 }
const string CFG_VEHICLESPATH
Definition: constants.c:192
const string CFG_WEAPONSPATH
Definition: constants.c:193
const string CFG_MAGAZINESPATH
Definition: constants.c:194

References CFG_MAGAZINESPATH, CFG_VEHICLESPATH, CFG_WEAPONSPATH, string::Contains(), g_Game, and string::ToLower().

Referenced by UpdateListClasses().

◆ GetFiltredSceneObjects()

protected map< int, SceneObject > UIScriptedMenu::GetFiltredSceneObjects ( string  search_string,
map< int, SceneObject array_ret 
)
inlineprivate

Definition at line 1179 of file sceneeditormenu.c.

1180 {
1181 array<ref SceneObject> scene_objects = m_ModuleSceneManager.GetSceneObjectsAll();
1182
1183 search_string.ToLower();
1184
1185 array_ret.Clear();
1186
1187 if( scene_objects != NULL )
1188 {
1189 for ( int i=0; i < scene_objects.Count(); ++i )
1190 {
1191 SceneObject sc_obj = scene_objects.Get(i);
1192
1193 string obj_name = sc_obj.GetTypeName();
1194
1195 obj_name.ToLower();
1196
1197 if ( obj_name.Contains(search_string))
1198 {
1199 array_ret.Insert(i, sc_obj);
1200 }
1201 }
1202 }
1203
1204 return array_ret;
1205 }
string GetTypeName()
Definition: sceneobject.c:376

References string::Contains(), SceneObject::GetTypeName(), and string::ToLower().

Referenced by UpdateListObjects().

◆ GetFreeUIPropertyAttchament()

UIPropertyAttachment UIScriptedMenu::GetFreeUIPropertyAttchament ( )
inlineprivate

Definition at line 1314 of file sceneeditormenu.c.

1315 {
1316 for ( int i = 0; i < m_PrWidgetsAttachments.Count(); ++i )
1317 {
1319
1320 if ( !ui_comp.IsVisible() )
1321 {
1322 return ui_comp;
1323 }
1324 }
1325
1327 m_PrWidgetsAttachments.Insert(ui_prop);
1328
1329 return ui_prop;
1330 }
protected Widget m_PrWgtAttRoot

References UIPropertyAttachment::IsVisible().

Referenced by Refresh().

◆ GetGestureItems()

protected void UIScriptedMenu::GetGestureItems ( out ref array< ref GestureMenuItem gesture_items,
GestureCategories  category 
)
inlineprivate

Definition at line 290 of file gesturesmenu.c.

291 {
292 gesture_items.Clear();
293
294 //PC PLATFORM
295 //All categories
296 if ( category == GestureCategories.CATEGORIES )
297 {
298 gesture_items.Insert( new GestureMenuItem( GestureCategories.CATEGORY_1, "#STR_USRACT_EMOTE_CATEGORY_COMMS", category ) );
299 gesture_items.Insert( new GestureMenuItem( GestureCategories.CATEGORY_2, "#STR_USRACT_EMOTE_CATEGORY_INTERACTIONS", category ) );
300 gesture_items.Insert( new GestureMenuItem( GestureCategories.CATEGORY_3, "#STR_USRACT_EMOTE_CATEGORY_POSES", category ) );
301 gesture_items.Insert( new GestureMenuItem( GestureCategories.CATEGORY_4, "#STR_USRACT_EMOTE_CATEGORY_MISC", category ) );
302 }
303 //Category 1 - commands
304 else if ( category == GestureCategories.CATEGORY_1 )
305 {
306 gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_POINT, "#STR_USRACT_ID_EMOTE_POINT", category ) );
307 gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_MOVE, "#STR_USRACT_ID_EMOTE_MOVE", category ) );
308 gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_HOLD, "#STR_USRACT_ID_EMOTE_HOLD", category ) );
309 gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_LISTENING, "#STR_USRACT_ID_EMOTE_LISTENING", category ) );
310 gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_DOWN, "#STR_USRACT_ID_EMOTE_DOWN", category ) );
311 gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_SILENT, "#STR_USRACT_ID_EMOTE_SILENT", category ) );
312 gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_WATCHING, "#STR_USRACT_ID_EMOTE_WATCHING", category ) );
313 gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_POINTSELF, "#STR_USRACT_ID_EMOTE_POINTSELF", category ) );
314 gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_COME, "#STR_USRACT_ID_EMOTE_COME", category ) );
315 }
316 //Category 2 - interaction
317 else if ( category == GestureCategories.CATEGORY_2 )
318 {
319 gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_GREETING, "#STR_USRACT_ID_EMOTE_GREETING", category ) );
320 gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_TAUNT, "#STR_USRACT_ID_EMOTE_TAUNT", category ) );
321 gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_SHAKE, "#STR_USRACT_ID_EMOTE_SHAKE", category ) );
322 gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_NOD, "#STR_USRACT_ID_EMOTE_NOD", category ) );
323 gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_LOOKATME, "#STR_USRACT_ID_EMOTE_LOOKATME", category ) );
324 gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_TAUNTELBOW, "#STR_USRACT_ID_EMOTE_TAUNTELBOW", category ) );
325 gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_THUMB, "#STR_USRACT_ID_EMOTE_THUMB", category ) );
326 gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_THUMBDOWN, "#STR_USRACT_ID_EMOTE_THUMBDOWN", category ) );
327 gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_CLAP, "#STR_USRACT_ID_EMOTE_CLAP", category ) );
328 }
329 //Category 3 - poses
330 else if ( category == GestureCategories.CATEGORY_3 )
331 {
332 gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_SUICIDE, "#STR_USRACT_ID_EMOTE_SUICIDE", category ) );
333 gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_SURRENDER, "#STR_USRACT_ID_EMOTE_SURRENDER", category ) );
334 gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_SALUTE, "#STR_USRACT_ID_EMOTE_SALUTE", category ) );
335 gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_SITB, "#STR_USRACT_ID_EMOTE_SITB", category ) );
336 gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_LYINGDOWN, "#STR_USRACT_ID_EMOTE_LYINGDOWN", category ) );
337 gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_SITA, "#STR_USRACT_ID_EMOTE_SITA", category ) );
338 gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_CAMPFIRE, "#STR_USRACT_ID_EMOTE_CAMPFIRE", category ) );
339 gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_SHRUG, "#STR_USRACT_ID_EMOTE_SHRUG", category ) );
340 gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_SOS, "#STR_USRACT_ID_EMOTE_SOS", category ) );
341 }
342 //Category 4 - special
343 else if ( category == GestureCategories.CATEGORY_4 )
344 {
345 gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_DANCE, "#STR_USRACT_ID_EMOTE_DANCE", category ) );
346 gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_HEART, "#STR_USRACT_ID_EMOTE_HEART", category ) );
347 gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_FACEPALM, "#STR_USRACT_ID_EMOTE_FACEPALM", category ) );
348 gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_TIMEOUT, "#STR_USRACT_ID_EMOTE_TIMEOUT", category ) );
349 gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_THROAT, "#STR_USRACT_ID_EMOTE_THROAT", category ) );
350 gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_VOMIT, "#STR_USRACT_ID_EMOTE_VOMIT", category ) );
351 gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_RPS, "#STR_USRACT_ID_EMOTE_RPS", category ) );
352 gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_TAUNTTHINK, "#STR_USRACT_ID_EMOTE_TAUNTTHINK", category ) );
353 gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_TAUNTKISS, "#STR_USRACT_ID_EMOTE_TAUNTKISS", category ) );
354 //gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_RPS_R, "#STR_USRACT_ID_EMOTE_RPS_R", category ) );
355 //gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_RPS_P, "#STR_USRACT_ID_EMOTE_RPS_P", category ) );
356 //gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_RPS_S, "#STR_USRACT_ID_EMOTE_RPS_S", category ) );
357 //gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_DEBUG, "ID_EMOTE_DEBUG", category ) );
358 }
359 }
const int ID_EMOTE_LOOKATME
Definition: constants.c:358
const int ID_EMOTE_TIMEOUT
Definition: constants.c:348
const int ID_EMOTE_SHRUG
Definition: constants.c:368
const int ID_EMOTE_VOMIT
Definition: constants.c:370
const int ID_EMOTE_CAMPFIRE
Definition: constants.c:342
const int ID_EMOTE_RPS
Definition: constants.c:353
const int ID_EMOTE_SURRENDER
Definition: constants.c:369
const int ID_EMOTE_CLAP
Definition: constants.c:349
const int ID_EMOTE_FACEPALM
Definition: constants.c:336
const int ID_EMOTE_SITA
Definition: constants.c:343
const int ID_EMOTE_POINT
Definition: constants.c:350
const int ID_EMOTE_DOWN
Definition: constants.c:361
const int ID_EMOTE_THUMB
Definition: constants.c:338
const int ID_EMOTE_SILENT
Definition: constants.c:351
const int ID_EMOTE_MOVE
Definition: constants.c:360
const int ID_EMOTE_POINTSELF
Definition: constants.c:357
const int ID_EMOTE_SHAKE
Definition: constants.c:367
const int ID_EMOTE_LISTENING
Definition: constants.c:356
const int ID_EMOTE_TAUNT
Definition: constants.c:333
const int ID_EMOTE_DANCE
Definition: constants.c:341
const int ID_EMOTE_WATCHING
Definition: constants.c:354
const int ID_EMOTE_GREETING
Definition: constants.c:330
const int ID_EMOTE_THROAT
Definition: constants.c:339
const int ID_EMOTE_SUICIDE
Definition: constants.c:340
const int ID_EMOTE_NOD
Definition: constants.c:366
const int ID_EMOTE_HEART
Definition: constants.c:332
const int ID_EMOTE_COME
Definition: constants.c:362
const int ID_EMOTE_SOS
Definition: constants.c:331
const int ID_EMOTE_TAUNTTHINK
Definition: constants.c:359
const int ID_EMOTE_SALUTE
Definition: constants.c:352
const int ID_EMOTE_HOLD
Definition: constants.c:355
const int ID_EMOTE_SITB
Definition: constants.c:344
const int ID_EMOTE_LYINGDOWN
Definition: constants.c:334
const int ID_EMOTE_TAUNTKISS
Definition: constants.c:335
const int ID_EMOTE_THUMBDOWN
Definition: constants.c:345
const int ID_EMOTE_TAUNTELBOW
Definition: constants.c:337

References GestureMenuItem(), EmoteConstants::ID_EMOTE_CAMPFIRE, EmoteConstants::ID_EMOTE_CLAP, EmoteConstants::ID_EMOTE_COME, EmoteConstants::ID_EMOTE_DANCE, EmoteConstants::ID_EMOTE_DOWN, EmoteConstants::ID_EMOTE_FACEPALM, EmoteConstants::ID_EMOTE_GREETING, EmoteConstants::ID_EMOTE_HEART, EmoteConstants::ID_EMOTE_HOLD, EmoteConstants::ID_EMOTE_LISTENING, EmoteConstants::ID_EMOTE_LOOKATME, EmoteConstants::ID_EMOTE_LYINGDOWN, EmoteConstants::ID_EMOTE_MOVE, EmoteConstants::ID_EMOTE_NOD, EmoteConstants::ID_EMOTE_POINT, EmoteConstants::ID_EMOTE_POINTSELF, EmoteConstants::ID_EMOTE_RPS, EmoteConstants::ID_EMOTE_SALUTE, EmoteConstants::ID_EMOTE_SHAKE, EmoteConstants::ID_EMOTE_SHRUG, EmoteConstants::ID_EMOTE_SILENT, EmoteConstants::ID_EMOTE_SITA, EmoteConstants::ID_EMOTE_SITB, EmoteConstants::ID_EMOTE_SOS, EmoteConstants::ID_EMOTE_SUICIDE, EmoteConstants::ID_EMOTE_SURRENDER, EmoteConstants::ID_EMOTE_TAUNT, EmoteConstants::ID_EMOTE_TAUNTELBOW, EmoteConstants::ID_EMOTE_TAUNTKISS, EmoteConstants::ID_EMOTE_TAUNTTHINK, EmoteConstants::ID_EMOTE_THROAT, EmoteConstants::ID_EMOTE_THUMB, EmoteConstants::ID_EMOTE_THUMBDOWN, EmoteConstants::ID_EMOTE_TIMEOUT, EmoteConstants::ID_EMOTE_VOMIT, and EmoteConstants::ID_EMOTE_WATCHING.

◆ GetItemNamesForSlots()

private map< string, ref TStringArray > UIScriptedMenu::GetItemNamesForSlots ( TStringArray  slots)
inlineprivate

Definition at line 1335 of file sceneeditormenu.c.

1336 {
1337 TStringArray searching_in = new TStringArray;
1338 searching_in.Insert(CFG_VEHICLESPATH);
1339 searching_in.Insert(CFG_WEAPONSPATH);
1340 searching_in.Insert(CFG_MAGAZINESPATH);
1341
1343
1344 for ( int m = 0; m < slots.Count(); ++m )
1345 {
1346 array_ret.Insert(slots.Get(m), new TStringArray);
1347 }
1348
1349 TStringArray inv_slots = new TStringArray;
1350 string inv_slot;
1351 string childName;
1352
1353 for ( int s = 0; s < searching_in.Count(); ++s )
1354 {
1355 string config_path = searching_in.Get(s);
1356
1357 int objects_count = g_Game.ConfigGetChildrenCount(config_path);
1358 for (int i = 0; i < objects_count; i++)
1359 {
1360 g_Game.ConfigGetChildName(config_path, i, childName);
1361
1362 g_Game.ConfigGetTextArray(config_path + " " + childName + " inventorySlot", inv_slots);
1363
1364 if ( inv_slots.Count() > 0 )
1365 {
1366 for ( int j = 0; j < inv_slots.Count(); ++j )
1367 {
1368 inv_slot = "";
1369 inv_slot = inv_slots.Get(j);
1370
1371 for ( int k = 0; k < slots.Count(); ++k )
1372 {
1373 string finding_slot_type = slots.Get(k);
1374
1375 if ( inv_slot == finding_slot_type )
1376 {
1377 array_ret.Get(finding_slot_type).Insert(childName);
1378 }
1379 }
1380 }
1381 }
1382 else
1383 {
1384 inv_slot = "";
1385 g_Game.ConfigGetText(config_path + " " + childName + " inventorySlot", inv_slot);
1386
1387 if ( inv_slot != "" )
1388 {
1389 for ( int l = 0; l < slots.Count(); ++l )
1390 {
1391 string finding_slot_type_2 = slots.Get(l);
1392
1393 if ( inv_slot == finding_slot_type_2 )
1394 {
1395 array_ret.Get(finding_slot_type_2).Insert(childName);
1396 }
1397 }
1398 }
1399 }
1400 }
1401 }
1402
1403 return array_ret;
1404 }

References CFG_MAGAZINESPATH, CFG_VEHICLESPATH, CFG_WEAPONSPATH, and g_Game.

Referenced by Refresh().

◆ GetItems()

protected void UIScriptedMenu::GetItems ( out ref array< ref RadialQuickbarItem items)
inlineprivate

Definition at line 266 of file radialquickbarmenu.c.

267 {
268 items.Clear();
269
270 PlayerBase player = PlayerBase.Cast( GetGame().GetPlayer() );
271 int size = player.GetQuickBarSize();
272 EntityAI entity;
273
274 for ( int i = 0; i < size; ++i )
275 {
276 entity = player.GetQuickBarEntity( i );
277
278 items.Insert( new RadialQuickbarItem( i, entity, "" ) );
279 }
280
282 }
protected void CheckForLightsAndNVG(out ref array< ref RadialQuickbarItem > items, int last_idx)

References GetGame(), GetPlayer(), and RadialQuickbarItem().

◆ GetItemsClasses()

TStringArray UIScriptedMenu::GetItemsClasses ( )
inlineprivate

Definition at line 648 of file scriptconsole.c.

649 {
651 }
const string CFG_AMMO
Definition: constants.c:195

References CFG_AMMO, CFG_MAGAZINESPATH, CFG_VEHICLESPATH, and CFG_WEAPONSPATH.

Referenced by ChangeFilterItems().

◆ GetItemToAssign()

static EntityAI UIScriptedMenu::GetItemToAssign ( )
inlinestaticprivate

Definition at line 135 of file radialquickbarmenu.c.

136 {
137 return m_ItemToAssign;
138 }
static EntityAI m_ItemToAssign

◆ GetLastSelectedObject()

static string UIScriptedMenu::GetLastSelectedObject ( )
inlinestaticprivate

Definition at line 2512 of file scriptconsole.c.

2513 {
2514 return m_LastSelectedObject;
2515 }
static string m_LastSelectedObject

References m_LastSelectedObject.

◆ GetMapPos()

vector UIScriptedMenu::GetMapPos ( )
inlineprivate

Definition at line 897 of file scriptconsole.c.

898 {
899 return m_MapPos;
900 }

References m_MapPos.

Referenced by OnClick(), and Update().

◆ GetMenuInstance()

static RadialQuickbarMenu UIScriptedMenu::GetMenuInstance ( )
inlinestaticprivate

Definition at line 140 of file radialquickbarmenu.c.

141 {
142 return instance;
143 }

◆ GetMouseLookDir()

vector UIScriptedMenu::GetMouseLookDir ( )
inlineprivate

Definition at line 475 of file cameratoolsmenu.c.

476 {
478 vector from = FreeDebugCamera.GetInstance().GetPosition();
479 vector to = from + ( dir * 10000 );
480 vector contact_pos;
481 vector contact_dir;
482 int contact_component;
483 Object ev_obj;
484 if ( m_SelectedEvent )
485 ev_obj = GetActor( m_SelectedEvent.GetEventActor() );
486 if ( DayZPhysics.RaycastRV(from, to, contact_pos, contact_dir, contact_component, null, null, ev_obj) )
487 {
488 return contact_pos;
489 }
490
491 return "0 0 0";
492 }
proto native vector GetPointerDirection()
Returns the direction where the mouse points, from the camera view.

References GetGame(), CGame::GetPointerDirection(), and DayZPhysics::RaycastRV().

◆ GetPlayerObj()

PlayerBase UIScriptedMenu::GetPlayerObj ( )
inlineprivate

Definition at line 48 of file charactercreationmenu.c.

49 {
50 return m_Scene.GetIntroCharacter().GetCharacterObj();
51 }

References DayZIntroSceneXbox::GetIntroCharacter().

Referenced by Init().

◆ GetPresetIndexByName() [1/2]

int UIScriptedMenu::GetPresetIndexByName ( string  preset_name)
inlineprivate

Definition at line 71 of file sceneeditormenu.c.

72 {
73 int i;
74 for ( i = 0; i < m_PresetsTextListbox.GetNumItems(); i++ )
75 {
76 PresetParams item_params_array;
77 m_PresetsTextListbox.GetItemData( i, 0, item_params_array );
78
79 if ( item_params_array.param1 == preset_name )
80 {
81 return i;
82 }
83 }
84 return -1;
85 }

Referenced by IsPresetFixed(), RenderPresets(), and SetDefaultPreset().

◆ GetPresetIndexByName() [2/2]

int UIScriptedMenu::GetPresetIndexByName ( string  preset_name)
inlineprivate

Definition at line 2206 of file scriptconsole.c.

2207 {
2208 int i;
2209 for ( i = 0; i < m_PresetsTextListbox.GetNumItems(); i++ )
2210 {
2211 PresetParams item_params_array;
2212 m_PresetsTextListbox.GetItemData( i, 0, item_params_array );
2213
2214 if ( item_params_array.param1 == preset_name )
2215 {
2216 return i;
2217 }
2218 }
2219 return -1;
2220 }

◆ GetSelectedTab()

ServerBrowserTab UIScriptedMenu::GetSelectedTab ( )
inlineprivate

Definition at line 614 of file serverbrowsermenunew.c.

615 {
616 switch ( m_Tabber.GetSelectedIndex() )
617 {
618 case 0:
619 {
620 return m_FavoritesTab;
621 }
622 case 1:
623 {
624 return m_OfficialTab;
625 }
626 case 2:
627 {
628 return m_CommunityTab;
629 }
630 case 3:
631 {
632 return m_LANTab;
633 }
634 }
635 return null;
636 }

References m_CommunityTab, m_FavoritesTab, m_LANTab, and m_OfficialTab.

Referenced by OnLoadServerModsAsync(), OnLoadServersAsync(), OnTabSwitch(), and Update().

◆ GetServersLoadingTab()

TabType UIScriptedMenu::GetServersLoadingTab ( )
inlineprivate

Definition at line 200 of file serverbrowsermenunew.c.

201 {
202 return m_IsRefreshing;
203 }
protected TabType m_IsRefreshing

References m_IsRefreshing.

◆ GetSoundClasses()

TStringArray UIScriptedMenu::GetSoundClasses ( )
inlineprivate

Definition at line 653 of file scriptconsole.c.

654 {
655 return {CFG_SOUND_SETS};
656 }
const string CFG_SOUND_SETS
Definition: constants.c:200

References CFG_SOUND_SETS.

Referenced by ChangeFilterSound().

◆ GetText()

string UIScriptedMenu::GetText ( )
inlineprivate

Definition at line 27 of file itemdropwarningmenu.c.

28 {
29 return "";
30 }

Referenced by OnClick().

◆ GetTotalTime()

float UIScriptedMenu::GetTotalTime ( int  index)
inlineprivate

Definition at line 260 of file cameratoolsmenu.c.

261 {
262 float time;
263 index = Math.Clamp( index, 0, m_Cameras.Count() );
264 for ( int i = 0; i < index; i++ )
265 {
266 time += m_Cameras.Get( i ).GetInterpTime();
267 }
268 return time;
269 }

References Math::Clamp().

◆ HandleLights()

void UIScriptedMenu::HandleLights ( RadialQuickbarItem  quickbar_item)
inlineprivate

Definition at line 730 of file radialquickbarmenu.c.

731 {
732 PlayerBase player = PlayerBase.Cast(GetGame().GetPlayer());
733 ItemBase item = ItemBase.Cast(quickbar_item.GetItem());
734 ActionManagerClient mngr_client = ActionManagerClient.Cast(player.GetActionManager());
735 ActionTarget atrg;
736
737 if ( Headtorch_ColorBase.Cast(item) )
738 {
739 atrg = new ActionTarget(item,null,-1,vector.Zero,-1.0);
740 if ( mngr_client.GetAction(ActionTurnOnHeadtorch).Can(player,atrg,null) )
741 {
742 mngr_client.PerformActionStart(player.GetActionManager().GetAction(ActionTurnOnHeadtorch),atrg,null);
743 }
744 else if ( mngr_client.GetAction(ActionTurnOffHeadtorch).Can(player,atrg,null) )
745 {
746 mngr_client.PerformActionStart(player.GetActionManager().GetAction(ActionTurnOffHeadtorch),atrg,null);
747 }
748 }
749 else if ( Mich2001Helmet.Cast(item.GetHierarchyParent()) )
750 {
751 atrg = new ActionTarget(item.GetHierarchyParent(),null,-1,vector.Zero,-1.0);
752 if ( mngr_client.GetAction(ActionTurnOnHelmetFlashlight).Can(player,atrg,null) )
753 {
754 mngr_client.PerformActionStart(player.GetActionManager().GetAction(ActionTurnOnHelmetFlashlight),atrg,null);
755 }
756 else if ( mngr_client.GetAction(ActionTurnOffHelmetFlashlight).Can(player,atrg,null) )
757 {
758 mngr_client.PerformActionStart(player.GetActionManager().GetAction(ActionTurnOffHelmetFlashlight),atrg,null);
759 }
760 }
761 }
class ActionTargets ActionTarget
static ActionBase GetAction(typename actionName)
void PerformActionStart(ActionBase action, ActionTarget target, ItemBase item, Param extra_data=NULL)
static const vector Zero
Definition: enconvert.c:104

References ActionTarget, ActionManagerBase::GetAction(), GetGame(), GetPlayer(), ActionManagerClient::PerformActionStart(), and vector::Zero.

◆ HandleNVG()

void UIScriptedMenu::HandleNVG ( RadialQuickbarItem  quickbar_item)
inlineprivate

Definition at line 763 of file radialquickbarmenu.c.

764 {
765 PlayerBase player = PlayerBase.Cast(GetGame().GetPlayer());
766 ActionManagerClient mngr_client = ActionManagerClient.Cast(player.GetActionManager());
767 ActionTarget atrg;
768
769 atrg = new ActionTarget(quickbar_item.GetItem().GetHierarchyParent(),null,-1,vector.Zero,-1.0);
770 if ( mngr_client.GetAction(ActionToggleNVG).Can(player,atrg,null) )
771 {
772 mngr_client.PerformActionStart(player.GetActionManager().GetAction(ActionToggleNVG),atrg,null);
773 }
774 }

References ActionTarget, ActionManagerBase::GetAction(), GetGame(), GetPlayer(), ActionManagerClient::PerformActionStart(), and vector::Zero.

◆ HelpScreen()

void UIScriptedMenu::HelpScreen ( )
inlineprivate

Definition at line 8 of file helpscreen.c.

9 {
10
11 }

◆ Hide() [1/3]

void UIScriptedMenu::Hide ( )
inlineprivate

Definition at line 90 of file dayzgame.c.

91 {
92 if (layoutRoot)
93 layoutRoot.Show(false);
94 }

Referenced by OnClick(), ScriptedWidgetEventHandler::ShowActionMenu(), and Update().

◆ Hide() [2/3]

void UIScriptedMenu::Hide ( )
inlineprivate

Definition at line 206 of file dayzgame.c.

207 {
208 if (layoutRoot)
209 layoutRoot.Show(false);
210 }

◆ Hide() [3/3]

void UIScriptedMenu::Hide ( )
inlineprivate

Definition at line 63 of file logoutmenu.c.

64 {
65 if (layoutRoot)
66 layoutRoot.Show(false);
67 }

◆ HideItemButtons()

void UIScriptedMenu::HideItemButtons ( )
inlineprivate

Definition at line 2260 of file scriptconsole.c.

2261 {
2262 m_ItemMoveUpButton.Show( false );
2263 m_ItemMoveDownButton.Show( false );
2264
2265// m_DamageEditBox.Show( false );
2266// m_QuantityEditBox.Show( false );
2267// m_ItemDamageLabel.Show( false );
2268// m_ItemQuantityLabel.Show( false );
2269 }
ButtonWidget m_ItemMoveUpButton
ButtonWidget m_ItemMoveDownButton

Referenced by Init(), OnDoubleClick(), SelectObject(), and ShowPresetButtons().

◆ HistoryBack()

void UIScriptedMenu::HistoryBack ( )
inlineprivate

Definition at line 493 of file scriptconsole.c.

494 {
495 if ( m_ConfigDebugProfile.GetTabSelected() == ScriptConsole.TAB_ENSCRIPT || m_ConfigDebugProfile.GetTabSelected() == ScriptConsole.TAB_ENSCRIPT_SERVER )
496 {
498 }
499 }
void ScriptConsole()
Definition: scriptconsole.c:41
void EnscriptHistoryBack()

References EnscriptHistoryBack().

Referenced by Dispatcher::ScriptConsoleHistoryBack().

◆ HistoryForward()

void UIScriptedMenu::HistoryForward ( )
inlineprivate

Definition at line 501 of file scriptconsole.c.

502 {
503 if ( m_ConfigDebugProfile.GetTabSelected() == ScriptConsole.TAB_ENSCRIPT || m_ConfigDebugProfile.GetTabSelected() == ScriptConsole.TAB_ENSCRIPT_SERVER)
504 {
506 }
507 }
void EnscriptHistoryForward()

References EnscriptHistoryForward().

Referenced by Dispatcher::ScriptConsoleHistoryForward().

◆ HudShow()

protected void UIScriptedMenu::HudShow ( bool  show)
inlineprivate

Definition at line 130 of file ingamemenu.c.

131 {
133 if (mission)
134 {
135 IngameHud hud = IngameHud.Cast(mission.GetHud());
136 if (hud)
137 {
138 hud.ShowHudUI(g_Game.GetProfileOption(EDayZProfilesOptions.HUD) && show);
139 hud.ShowQuickbarUI(g_Game.GetProfileOption(EDayZProfilesOptions.QUICKBAR) && show);
140 }
141 }
142 }
EDayZProfilesOptions

References g_Game, GetGame(), Mission::GetHud(), CGame::GetMission(), and mission.

Referenced by Init(), and ~InGameMenu().

◆ ImagenSetColor() [1/2]

void UIScriptedMenu::ImagenSetColor ( Widget  w,
int  color 
)
inlineprivate

Definition at line 636 of file mainmenu.c.

637 {
638 if( !w )
639 return;
640
641 Widget panel = w.FindWidget( w.GetName() + "_image" );
642
643 if( panel )
644 {
645 panel.SetColor( color );
646 }
647 }

Referenced by ColorHighlight(), and ColorNormal().

◆ ImagenSetColor() [2/2]

void UIScriptedMenu::ImagenSetColor ( Widget  w,
int  color 
)
inlineprivate

Definition at line 532 of file tutorialsmenu.c.

533 {
534 if( !w )
535 return;
536
537 Widget panel = w.FindWidget( w.GetName() + "_image" );
538
539 if( panel )
540 {
541 panel.SetColor( color );
542 }
543 }

◆ InGameMenuXbox()

void UIScriptedMenu::InGameMenuXbox ( )
inlineprivate

◆ Init() [1/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 41 of file dayzgame.c.

42 {
43 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/dialog_queue_position.layout");
44
45 m_txtPosition = TextWidget.Cast(layoutRoot.FindAnyWidget("txtPosition"));
46 m_txtNote = TextWidget.Cast(layoutRoot.FindAnyWidget("txtNote"));
47 m_btnLeave = ButtonWidget.Cast(layoutRoot.FindAnyWidget("btnLeave"));
48 m_txtNote.Show(true);
49 layoutRoot.FindAnyWidget("notification_root").Show(false);
50
51 #ifdef PLATFORM_CONSOLE
52 layoutRoot.FindAnyWidget("toolbar_bg").Show(true);
53 RichTextWidget toolbar_b = RichTextWidget.Cast(layoutRoot.FindAnyWidget("BackIcon"));
54 toolbar_b.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUIBack", "", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
55 #ifdef PLATFORM_XBOX
56 #ifdef BUILD_EXPERIMENTAL
57 layoutRoot.FindAnyWidget("notification_root").Show(true);
58 #endif
59 #endif
60 #endif
61
62 return layoutRoot;
63 }
proto native WorkspaceWidget GetWorkspace()
static string GetRichtextButtonIconFromInputAction(notnull UAInput pInput, string pLocalizedDescription, int pInputDeviceType=EUAINPUT_DEVICE_CONTROLLER, float pScale=ICON_SCALE_NORMAL, bool pVertical=false)
Definition: inpututils.c:167
static const float ICON_SCALE_TOOLBAR
Definition: inpututils.c:15
protected TextWidget m_txtPosition
Definition: dayzgame.c:22
protected TextWidget m_txtNote
Definition: dayzgame.c:23
protected ButtonWidget m_btnLeave
Definition: dayzgame.c:24
proto native external Widget CreateWidgets(string layout, Widget parentWidget=NULL, bool immedUpdate=true)
Create widgets from *.layout file.

References WorkspaceWidget::CreateWidgets(), GetGame(), InputUtils::GetRichtextButtonIconFromInputAction(), CGame::GetWorkspace(), and InputUtils::ICON_SCALE_TOOLBAR.

◆ Init() [2/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 157 of file dayzgame.c.

158 {
159 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/dialog_login_time.layout");
160
161 m_txtDescription = TextWidget.Cast(layoutRoot.FindAnyWidget("txtDescription"));
162 m_txtLabel = TextWidget.Cast(layoutRoot.FindAnyWidget("txtLabel"));
163 m_btnLeave = ButtonWidget.Cast(layoutRoot.FindAnyWidget("btnLeave"));
164 m_txtDescription.Show(true);
165 layoutRoot.FindAnyWidget("notification_root").Show(false);
166
167 #ifdef PLATFORM_CONSOLE
168 layoutRoot.FindAnyWidget("toolbar_bg").Show(true);
169 RichTextWidget toolbar_b = RichTextWidget.Cast(layoutRoot.FindAnyWidget("BackIcon"));
170 toolbar_b.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUIBack", "", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
171 #ifdef PLATFORM_XBOX
172 #ifdef BUILD_EXPERIMENTAL
173 layoutRoot.FindAnyWidget("notification_root").Show(true);
174 #endif
175 #endif
176 #endif
177
178 return layoutRoot;
179 }
protected TextWidget m_txtDescription
Definition: dayzgame.c:139
protected TextWidget m_txtLabel
Definition: dayzgame.c:140

References WorkspaceWidget::CreateWidgets(), GetGame(), InputUtils::GetRichtextButtonIconFromInputAction(), CGame::GetWorkspace(), and InputUtils::ICON_SCALE_TOOLBAR.

◆ Init() [3/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 11 of file bookmenu.c.

12 {
13 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/day_z_book.layout");
14 Class.CastTo(m_content, layoutRoot.FindAnyWidget("HtmlWidget"));
15 Class.CastTo(m_author, layoutRoot.FindAnyWidget("Author"));
16 Class.CastTo(m_title, layoutRoot.FindAnyWidget("Title"));
17 Class.CastTo(m_page, layoutRoot.FindAnyWidget("Page"));
18
19 float width;
20 m_content.GetScreenSize(width, m_page_height);
21 return layoutRoot;
22 }
Super root of all classes in Enforce script.
Definition: enscript.c:11
protected HtmlWidget m_content
Definition: bookmenu.c:6
protected TextWidget m_author
Definition: bookmenu.c:3
protected TextWidget m_title
Definition: bookmenu.c:4
protected TextWidget m_page
Definition: bookmenu.c:5
protected float m_page_height
Definition: bookmenu.c:7
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

References Class::CastTo(), WorkspaceWidget::CreateWidgets(), GetGame(), and CGame::GetWorkspace().

◆ Init() [4/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 126 of file cameratoolsmenu.c.

127 {
128 layoutRoot = GetGame().GetWorkspace().CreateWidgets( "gui/layouts/camera_tools/camera_tools.layout" );
129
130 m_KeyframeContent = layoutRoot.FindAnyWidget( "keyframe_list_content" );
131 m_EventContent = layoutRoot.FindAnyWidget( "events_list_content" );
132 m_InterpTypeCombo = XComboBoxWidget.Cast( layoutRoot.FindAnyWidget( "interp_type" ) );
133 m_InterpTypeSpeedCombo = XComboBoxWidget.Cast( layoutRoot.FindAnyWidget( "interp_speed_type" ) );
134 m_BlurEditWidget = EditBoxWidget.Cast( layoutRoot.FindAnyWidget( "blur_value" ) );
135 m_ActorTypeWidget = EditBoxWidget.Cast( layoutRoot.FindAnyWidget( "add_actor_type" ) );
136 m_ActorIdWidget = EditBoxWidget.Cast( layoutRoot.FindAnyWidget( "add_actor_id" ) );
137 m_ActorItemTypeWidget = EditBoxWidget.Cast( layoutRoot.FindAnyWidget( "add_item_type" ) );
138
139 m_AddKeyframe = ButtonWidget.Cast( layoutRoot.FindAnyWidget( "add_keyframe" ) );
140 m_AddEvent = ButtonWidget.Cast( layoutRoot.FindAnyWidget( "add_event" ) );
141
142 m_AddItem = ButtonWidget.Cast( layoutRoot.FindAnyWidget( "add_actor_item" ) );
143 m_AddHandsItem = ButtonWidget.Cast( layoutRoot.FindAnyWidget( "add_actor_item_hands" ) );
144 m_AddActor = ButtonWidget.Cast( layoutRoot.FindAnyWidget( "add_actor" ) );
145 m_Play = ButtonWidget.Cast( layoutRoot.FindAnyWidget( "play" ) );
146 m_Stop = ButtonWidget.Cast( layoutRoot.FindAnyWidget( "stop" ) );
147 m_Save = ButtonWidget.Cast( layoutRoot.FindAnyWidget( "save" ) );
148 m_Load = ButtonWidget.Cast( layoutRoot.FindAnyWidget( "load" ) );
149
150 m_SaveKeyframe = ButtonWidget.Cast( layoutRoot.FindAnyWidget( "save_keyframe" ) );
151 m_DeleteKeyframe = ButtonWidget.Cast( layoutRoot.FindAnyWidget( "delete_keyframe" ) );
152 m_ViewKeyframe = ButtonWidget.Cast( layoutRoot.FindAnyWidget( "snap_to_keyframe" ) );
153 m_SaveEvent = ButtonWidget.Cast( layoutRoot.FindAnyWidget( "save_event" ) );
154 m_DeleteEvent = ButtonWidget.Cast( layoutRoot.FindAnyWidget( "delete_event" ) );
155 m_ViewEvent = ButtonWidget.Cast( layoutRoot.FindAnyWidget( "snap_to_event" ) );
156
157 m_CopyButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget( "CopyButton" ) );
158 m_ApplyButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget( "ApplyButton" ) );
159 m_CameraEditbox = EditBoxWidget.Cast( layoutRoot.FindAnyWidget( "CameraEditbox" ) );
160 m_CameraValues = TextWidget.Cast( layoutRoot.FindAnyWidget( "CameraValues" ) );
161
162 MissionGameplay ms = MissionGameplay.Cast( GetGame().GetMission() );
163 ms.GetHud().Show( false );
165
166 m_BlurEditWidget.SetText( "0.0" );
167 return layoutRoot;
168 }
static void EnableFreeCameraSceneEditor(PlayerBase player)
protected ButtonWidget m_ViewKeyframe
protected ButtonWidget m_SaveKeyframe
protected ButtonWidget m_AddItem
protected ButtonWidget m_DeleteEvent
protected ButtonWidget m_ApplyButton
protected EditBoxWidget m_CameraEditbox
protected ButtonWidget m_AddEvent
protected ButtonWidget m_AddKeyframe
protected ButtonWidget m_SaveEvent
protected ButtonWidget m_Load
protected ButtonWidget m_Play
protected ButtonWidget m_CopyButton
protected ButtonWidget m_AddHandsItem
protected ButtonWidget m_Stop
protected TextWidget m_CameraValues
protected ButtonWidget m_Save
protected ButtonWidget m_ViewEvent
protected XComboBoxWidget m_InterpTypeCombo
protected EditBoxWidget m_ActorTypeWidget
protected EditBoxWidget m_ActorIdWidget
protected EditBoxWidget m_ActorItemTypeWidget
protected ButtonWidget m_DeleteKeyframe
protected XComboBoxWidget m_InterpTypeSpeedCombo
protected ButtonWidget m_AddActor

References WorkspaceWidget::CreateWidgets(), DeveloperFreeCamera::EnableFreeCameraSceneEditor(), GetGame(), GetPlayer(), and CGame::GetWorkspace().

◆ Init() [5/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 12 of file chatinputmenu.c.

13 {
14 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/day_z_chat_input.layout");
15 m_edit_box = EditBoxWidget.Cast( layoutRoot.FindAnyWidget("InputEditBoxWidget") );
16 m_channel_text = TextWidget.Cast( layoutRoot.FindAnyWidget("ChannelText") );
17
19 return layoutRoot;
20 }
void UpdateChannel()
Definition: chatinputmenu.c:80
private TextWidget m_channel_text
Definition: chatinputmenu.c:4
private EditBoxWidget m_edit_box
Definition: chatinputmenu.c:3

References WorkspaceWidget::CreateWidgets(), GetGame(), CGame::GetWorkspace(), and UpdateChannel().

◆ Init() [6/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 404 of file controlsxboxnew.c.

405 {
408
409 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/xbox/Controls_Screen.layout");
410 #ifdef PLATFORM_XBOX
411 m_ControlsImage = layoutRoot.FindAnyWidget("XboxControlsImage");
412 #else
413 #ifdef PLATFORM_PS4
414 m_ControlsImage = layoutRoot.FindAnyWidget("PSControlsImage");
415 #endif
416 #endif
417 m_ControlsImage.Show(true);
418 m_TabberWidget = layoutRoot.FindAnyWidget("Tabber");
419 m_TabberWidget.GetScript(m_TabScript);
420 m_TabScript.m_OnTabSwitch.Insert(UpdateTabContent);
421 m_CanvasWidget = CanvasWidget.Cast( layoutRoot.FindAnyWidget("CanvasUniversal") );
422 m_Back = ButtonWidget.Cast(layoutRoot.FindAnyWidget("back"));
423
425
426 PPERequester_MenuEffects requester;
427 Class.CastTo(requester,PPERequesterBank.GetRequester(PPERequesterBank.REQ_MENUEFFECTS));
428 requester.SetVignetteIntensity(0.6);
429
430 ComposeData();
432
435
436 OnInputDeviceChanged(GetGame().GetInput().GetCurrentInputDevice());
437
438
439 return layoutRoot;
440 }
protected Widget m_TabberWidget
void UpdateTabContent(int tab_index)
protected void ComposeData()
Inits data structure.

References Class::CastTo(), ComposeData(), WorkspaceWidget::CreateWidgets(), GetGame(), GetInput(), CGame::GetMission(), Mission::GetOnInputDeviceChanged(), Mission::GetOnInputPresetChanged(), CGame::GetWorkspace(), ScriptInvoker::Insert(), m_Back, m_TabScript, OnInputDeviceChanged(), OnInputDeviceChanged(), OnInputPresetChanged(), UpdateControlsElements(), and UpdateTabContent().

◆ Init() [7/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 11 of file earlyaccessmenu.c.

12 {
13 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/day_z_early_access.layout");
14
15 return layoutRoot;
16 }

References WorkspaceWidget::CreateWidgets(), GetGame(), and CGame::GetWorkspace().

◆ Init() [8/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 179 of file gesturesmenu.c.

180 {
182
183 layoutRoot = GetGame().GetWorkspace().CreateWidgets( "gui/layouts/radial_menu/radial_gestures/day_z_gestures.layout" );
184 m_GestureItemCardPanel = layoutRoot.FindAnyWidget( RadialMenu.RADIAL_ITEM_CARD_CONTAINER );
185
186 //register gestures menu
187 RadialMenu.GetInstance().RegisterClass( this );
188
189 //delay updates until fully initialized
190 RadialMenu.GetInstance().SetWidgetInitialized(false);
191
192 //set radial menu properties
193 RadialMenu.GetInstance().SetWidgetProperties( "gui/layouts/radial_menu/radial_gestures/day_z_gesture_delimiter.layout" );
194
195 //create content (widgets) for items
197
198 m_ToolbarPanel = layoutRoot.FindAnyWidget( "toolbar_bg" );
199 m_ToolbarPanel.Show( true );
200
201 //clear category name text
202 UpdateCategoryName( "" );
203
204 return layoutRoot;
205 }
protected Widget m_ToolbarPanel
Definition: gesturesmenu.c:110

References WorkspaceWidget::CreateWidgets(), GetGame(), CGame::GetWorkspace(), and RadialMenu().

◆ Init() [9/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 17 of file helpscreen.c.

18 {
19 PluginKeyBinding module_keybinding = PluginKeyBinding.Cast( GetPlugin(PluginKeyBinding) );
20
21 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/help_screen.layout");
22 m_KeyBindingsTextListboxWidget = TextListboxWidget.Cast( layoutRoot.FindAnyWidget("KeyBindingsTextListboxWidget") );
23 m_MouseBindingsTextListboxWidget = TextListboxWidget.Cast( layoutRoot.FindAnyWidget("MouseBindingsTextListboxWidget") );
24
25 array<ref KeyBinding> keybindings = module_keybinding.GetKeyBindings();
26 for ( int i = 0; i < keybindings.Count(); i++ )
27 {
28 m_KeyBindingsTextListboxWidget.AddItem( keybindings.Get(i).GetInfoBind(), NULL, 0 );
29 m_KeyBindingsTextListboxWidget.SetItem( i, keybindings.Get(i).GetInfoDescription(), NULL, 1 );
30 }
31
32 array<ref MouseBinding> mousebindings = module_keybinding.GetMouseBindings();
33 for ( i = 0; i < mousebindings.Count(); i++ )
34 {
35 m_MouseBindingsTextListboxWidget.AddItem( mousebindings.Get(i).GetInfoBind(), NULL, 0 );
36 m_MouseBindingsTextListboxWidget.SetItem( i, mousebindings.Get(i).GetInfoDescription(), NULL, 1 );
37 }
38
39 m_CloseConsoleButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget("CloseButtonWidget") );
40
41 return layoutRoot;
42 }
TextListboxWidget m_MouseBindingsTextListboxWidget
Definition: helpscreen.c:4
ButtonWidget m_CloseConsoleButton
Definition: helpscreen.c:6
TextListboxWidget m_KeyBindingsTextListboxWidget
Definition: helpscreen.c:3

References WorkspaceWidget::CreateWidgets(), GetGame(), GetPlugin(), and CGame::GetWorkspace().

◆ Init() [10/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 30 of file ingamemenu.c.

31 {
32 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/day_z_ingamemenu.layout");
33
34 m_ContinueButton = layoutRoot.FindAnyWidget("continuebtn");
35 m_ExitButton = layoutRoot.FindAnyWidget("exitbtn");
36 m_RestartButton = layoutRoot.FindAnyWidget("restartbtn");
37 m_RespawnButton = layoutRoot.FindAnyWidget("respawn_button");
38 m_RestartDeadRandomButton = layoutRoot.FindAnyWidget("respawn_button_random");
39 m_RestartDeadCustomButton = layoutRoot.FindAnyWidget("respawn_button_custom");
40 m_OptionsButton = layoutRoot.FindAnyWidget("optionsbtn");
41 m_ModdedWarning = TextWidget.Cast(layoutRoot.FindAnyWidget("ModdedWarning"));
42 m_HintPanel = new UiHintPanel(layoutRoot.FindAnyWidget("hint_frame"));
43 m_ServerInfoPanel = layoutRoot.FindAnyWidget("server_info");
44 m_ServerIP = TextWidget.Cast(layoutRoot.FindAnyWidget("server_ip"));
45 m_ServerPort = TextWidget.Cast(layoutRoot.FindAnyWidget("server_port"));
46 m_ServerName = TextWidget.Cast(layoutRoot.FindAnyWidget("server_name"));
47 //m_FavoriteButton = layoutRoot.FindAnyWidget("favorite_button");
48 m_FavoriteImage = layoutRoot.FindAnyWidget("favorite_image");
49 m_UnfavoriteImage = layoutRoot.FindAnyWidget("unfavorite_image");
50 m_CopyInfoButton = layoutRoot.FindAnyWidget("copy_button");
51
52 if (GetGame().IsMultiplayer())
53 {
54 ButtonSetText(m_RestartButton, "#main_menu_respawn");
55 }
56 else
57 {
58 ButtonSetText(m_RestartButton, "#main_menu_restart");
59 }
60
61 HudShow(false);
63 SetServerInfoVisibility(SetServerInfo() && g_Game.GetProfileOption(EDayZProfilesOptions.SERVERINFO_DISPLAY));
64 m_ModdedWarning.Show(g_Game.ReportModded());
65
66 return layoutRoot;
67 }
protected ref TextWidget m_ModdedWarning
Definition: ingamemenu.c:18
protected Widget m_RestartDeadCustomButton
Definition: ingamemenu.c:10
void SetServerInfoVisibility(bool show)
Definition: ingamemenu.c:437
protected Widget m_RespawnButton
Definition: ingamemenu.c:8
protected Widget m_RestartDeadRandomButton
Definition: ingamemenu.c:9
protected ref TextWidget m_ServerPort
Definition: ingamemenu.c:20
protected Widget m_RestartButton
Definition: ingamemenu.c:7
protected Widget m_FavoriteImage
Definition: ingamemenu.c:14
protected Widget m_ServerInfoPanel
Definition: ingamemenu.c:12
protected ref TextWidget m_ServerName
Definition: ingamemenu.c:21
protected ref UiHintPanel m_HintPanel
Definition: ingamemenu.c:23
protected void SetGameVersion()
Definition: ingamemenu.c:69
protected void ButtonSetText(Widget w, string text)
Definition: ingamemenu.c:397
protected ref TextWidget m_ServerIP
Definition: ingamemenu.c:19
protected Widget m_UnfavoriteImage
Definition: ingamemenu.c:15
protected Widget m_CopyInfoButton
Definition: ingamemenu.c:16
protected bool SetServerInfo()
Definition: ingamemenu.c:81
protected Widget m_OptionsButton
Definition: ingamemenu.c:11
protected Widget m_ExitButton
Definition: ingamemenu.c:6

References ButtonSetText(), WorkspaceWidget::CreateWidgets(), g_Game, GetGame(), CGame::GetWorkspace(), HudShow(), SetGameVersion(), SetServerInfo(), and SetServerInfoVisibility().

◆ Init() [11/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 80 of file ingamemenuxbox.c.

81 {
82 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/xbox/day_z_ingamemenu_xbox.layout");
83
84 m_OnlineMenu = GetGame().GetWorkspace().CreateWidgets("gui/layouts/xbox/ingamemenu_xbox/online_info_menu.layout", layoutRoot);
85 m_OnlineMenu.Show( false );
86
87 m_ContinueButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget( "continuebtn" ) );
88 m_RestartDeadButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget( "restartbtn_dead" ) );
89 m_ExitButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget( "exitbtn" ) );
90 m_RestartButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget( "restartbtn" ) );
91 m_OptionsButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget( "optionsbtn" ) );
92 m_ControlsButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget( "controlsbtn" ) );
93 m_OnlineButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget( "onlinebtn" ) );
94 m_TutorialsButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget( "tutorialsbtn" ) );
95 m_Version = TextWidget.Cast( layoutRoot.FindAnyWidget( "version" ) );
96
97 Man player = GetGame().GetPlayer();
98 if (player)
99 {
100 int life_state = player.GetPlayerState();
101
102 if (life_state == EPlayerStates.ALIVE)
103 {
104 m_PlayerAlive = true;
105 }
106 }
107
109
110 string version;
111 GetGame().GetVersion( version );
112 #ifdef PLATFORM_CONSOLE
113 version = "#main_menu_version" + " " + version + " (" + g_Game.GetDatabaseID() + ")";
114 #else
115 version = "#main_menu_version" + " " + version;
116 #endif
117 m_Version.SetText( version );
118
119 if ( GetGame().IsMultiplayer() )
120 {
121 m_OnlineButton.Show( true );
122
123 TextWidget w_text = TextWidget.Cast(m_OnlineMenu.FindAnyWidget("OnlineTextWidget"));
124 w_text.SetText(g_Game.GetHostName());
125
126 m_ServerInfoPanel = new PlayerListScriptedWidget( m_OnlineMenu.FindAnyWidget( "ServerInfoPanel" ) );
127
130
133
134 string uid = m_ServerInfoPanel.FindPlayerByWidget( GetFocus() );
135 if ( uid != "" )
136 {
137 if ( IsLocalPlayer( uid ) || m_ServerInfoPanel.IsEmpty() )
138 {
139 layoutRoot.FindAnyWidget( "Mute" ).Show( false );
140 layoutRoot.FindAnyWidget( "Gamercard" ).Show( false );
141 }
142 else
143 {
144 layoutRoot.FindAnyWidget( "Mute" ).Show( !GetGame().GetWorld().IsDisabledReceivingVoN() );
145 #ifndef PLATFORM_PS4
146 layoutRoot.FindAnyWidget( "Gamercard" ).Show( true );
147 #endif
149 }
150
151 if ( m_ServerInfoPanel.IsGloballyMuted( uid ) )
152 {
153 layoutRoot.FindAnyWidget( "Mute" ).Show( false );
154 }
155 }
156 }
157 else
158 {
159 layoutRoot.FindAnyWidget( "onlinebtn" ).Show( false );
160 layoutRoot.FindAnyWidget( "invitebtn" ).Show( false );
161 }
162
163 layoutRoot.FindAnyWidget( "Gamercard" ).Show( false );
164 layoutRoot.FindAnyWidget( "Mute" ).Show( false );
165
166 //RESPAWN & RESTART
167 ButtonWidget restart_btn = ButtonWidget.Cast( layoutRoot.FindAnyWidgetById( IDC_INT_RETRY ) );
168 if (GetGame().IsMultiplayer())
169 {
170 restart_btn.SetText("#main_menu_respawn");
171 }
172 else
173 {
174 restart_btn.SetText("#main_menu_restart");
175 }
176
177 if ( GetGame().IsMultiplayer() && !( GetGame().CanRespawnPlayer() || ( player && player.IsUnconscious() ) ) )
178 {
179 restart_btn.Enable( false );
180 restart_btn.Show( false );
181 }
182 //
183
184 #ifdef BULDOZER
185 delete restart_btn;
186 #endif
187
189 if ( mission )
190 {
191 IngameHud hud = IngameHud.Cast( mission.GetHud() );
192 if ( hud )
193 {
194 hud.ShowHudUI(false);
195 hud.ShowQuickbarUI(false);
196 }
197 }
198
199 PPERequester_MenuEffects requester;
200 Class.CastTo(requester,PPERequesterBank.GetRequester(PPERequester_MenuEffects));
201 requester.SetVignetteIntensity(0.6);
202
204
205 /*#ifdef PLATFORM_XBOX
206 if ( CGame.IsDigitalCopy() )
207 {
208 layoutRoot.FindAnyWidget( "PhysicalCopy" ).Show( false );
209 layoutRoot.FindAnyWidget( "DigitalCopy" ).Show( true );
210 }
211 else
212 {
213 layoutRoot.FindAnyWidget( "PhysicalCopy" ).Show( true );
214 layoutRoot.FindAnyWidget( "DigitalCopy" ).Show( false );
215 }
216 #endif*/
219
220 OnInputDeviceChanged(GetGame().GetInput().GetCurrentInputDevice());
221
222 return layoutRoot;
223 }
proto native DayZPlayer GetPlayer()
proto void GetVersion(out string version)
static ref SyncPlayerList m_PlayerList
Definition: clientdata.c:8
static bool IsPlayerMuted(string id)
static map< string, bool > GetMuteList()
protected void SetMuteButtonText(bool isMuted)
Set mute text button text (mute / unmute)
protected ButtonWidget m_ControlsButton
void UpdateMenuFocus()
protected bool m_PlayerAlive
protected ButtonWidget m_TutorialsButton
protected TextWidget m_Version
protected ButtonWidget m_RestartDeadButton
bool IsLocalPlayer(string uid)
protected void LoadFooterButtonTexts()
Initial texts load for the footer buttons.
protected void LoadTextStrings()
Set correct bottom button texts based on platform (ps4 vs xbox texts)
EPlayerStates
Definition: eplayerstates.c:2
const int IDC_INT_RETRY
ingame menu
Definition: constants.c:135
proto native Widget GetFocus()

References Class::CastTo(), WorkspaceWidget::CreateWidgets(), g_Game, GetFocus(), GetGame(), Mission::GetHud(), GetInput(), CGame::GetMission(), OnlineServices::GetMuteList(), CGame::GetPlayer(), CGame::GetVersion(), CGame::GetWorkspace(), IDC_INT_RETRY, ScriptInvoker::Insert(), IsLocalPlayer(), OnlineServices::IsPlayerMuted(), LoadFooterButtonTexts(), LoadTextStrings(), OnlineServices::m_PermissionsAsyncInvoker, ClientData::m_PlayerList, mission, OnInputDeviceChanged(), SetMuteButtonText(), ClientData::SyncEvent_OnPlayerListUpdate, UpdateControlsElements(), and UpdateMenuFocus().

◆ Init() [12/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 29 of file inspectmenunew.c.

30 {
31 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/inventory_new/day_z_inventory_new_inspect.layout");
32
33
34 return layoutRoot;
35 }

References WorkspaceWidget::CreateWidgets(), GetGame(), and CGame::GetWorkspace().

◆ Init() [13/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 12 of file invitemenu.c.

13 {
14 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/day_z_invite_dialog.layout");
15
16 m_LogoutTimetext = TextWidget.Cast( layoutRoot.FindAnyWidget("logoutTimeText") );
17 m_Info = TextWidget.Cast( layoutRoot.FindAnyWidget("txtInfo") );
18 m_LogoutTimetext.SetText(m_iTime.ToString());
19
20 layoutRoot.FindAnyWidget("toolbar_bg").Show(true);
21 RichTextWidget toolbar_b = RichTextWidget.Cast(layoutRoot.FindAnyWidget("BackIcon"));
22 toolbar_b.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUIBack", "", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
23
24 // player should sit down if possible
25 PlayerBase player = PlayerBase.Cast(GetGame().GetPlayer());
26 if (player && player.GetEmoteManager() && !player.IsRestrained() && !player.IsUnconscious())
27 {
28 player.GetEmoteManager().CreateEmoteCBFromMenu(EmoteConstants.ID_EMOTE_SITA);
29 player.GetEmoteManager().GetEmoteLauncher().SetForced(EmoteLauncher.FORCE_DIFFERENT);
30 }
31
33 return layoutRoot;
34 }
static const int FORCE_DIFFERENT
Definition: emotemanager.c:77
private int m_iTime
Definition: invitemenu.c:5
private TextWidget m_LogoutTimetext
Definition: invitemenu.c:3
private TextWidget m_Info
Definition: invitemenu.c:4

References CALL_CATEGORY_SYSTEM, ScriptCallQueue::CallLater(), WorkspaceWidget::CreateWidgets(), EmoteLauncher::FORCE_DIFFERENT, CGame::GetCallQueue(), GetGame(), GetPlayer(), InputUtils::GetRichtextButtonIconFromInputAction(), CGame::GetWorkspace(), InputUtils::ICON_SCALE_TOOLBAR, and EmoteConstants::ID_EMOTE_SITA.

◆ Init() [14/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 14 of file itemdropwarningmenu.c.

15 {
16 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/day_z_dropped_items.layout");
17 string text = GetText();
18 if(text)
19 {
20 MultilineTextWidget w = MultilineTextWidget.Cast(layoutRoot.FindAnyWidget("Text"));
21 if(w)
22 w.SetText(text);
23 }
24 return layoutRoot;
25 }

References WorkspaceWidget::CreateWidgets(), GetGame(), WarningMenuBase::GetText(), and CGame::GetWorkspace().

◆ Init() [15/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 11 of file loadingmenu.c.

12 {
13 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/loading.layout");
14
15 m_label = TextWidget.Cast( layoutRoot.FindAnyWidget("TextWidget") );
16 m_progressBar = ProgressBarWidget.Cast( layoutRoot.FindAnyWidget("ProgressBarWidget") );
17 m_image = ImageWidget.Cast( layoutRoot.FindAnyWidget("ImageBackground") );
18
19 m_image.LoadImageFile( 0, GetRandomLoadingBackground() );
20 layoutRoot.FindAnyWidget("notification_root").Show(false);
21
22 #ifdef PLATFORM_CONSOLE
23 #ifdef PLATFORM_XBOX
24 #ifdef BUILD_EXPERIMENTAL
25 Widget exp_notifiaction = layoutRoot.FindAnyWidget("notification_root");
26 if (exp_notifiaction)
27 {
28 exp_notifiaction.Show(true);
29 }
30 #endif
31 #endif
32 #endif
33
34 return layoutRoot;
35 }
ProgressBarWidget m_progressBar
Definition: loadingmenu.c:38
TextWidget m_label
Definition: loadingmenu.c:37
ImageWidget m_image
Definition: loadingmenu.c:39
string GetRandomLoadingBackground()
Returns random loading background texture path.
Definition: uimanager.c:253

References WorkspaceWidget::CreateWidgets(), GetGame(), GetRandomLoadingBackground(), and CGame::GetWorkspace().

◆ Init() [16/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 22 of file logoutmenu.c.

23 {
24 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/day_z_logout_dialog.layout");
25
26 m_LogoutTimeText = TextWidget.Cast(layoutRoot.FindAnyWidget("txtLogoutTime"));
27 m_DescriptionText = TextWidget.Cast(layoutRoot.FindAnyWidget("txtDescription"));
28 m_bLogoutNow = ButtonWidget.Cast(layoutRoot.FindAnyWidget("bLogoutNow"));
29 m_bCancel = ButtonWidget.Cast(layoutRoot.FindAnyWidget("bCancel"));
30
31 #ifdef PLATFORM_CONSOLE
32 m_bCancel.Show(false);
33 m_bLogoutNow.Show(false);
34
35 layoutRoot.FindAnyWidget("toolbar_bg").Show(true);
36 RichTextWidget toolbar_b = RichTextWidget.Cast(layoutRoot.FindAnyWidget("BackIcon"));
37 toolbar_b.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUIBack", "", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
38 #else
39 m_bCancel.Show(true);
40 m_bLogoutNow.Show(true);
41 layoutRoot.FindAnyWidget("toolbar_bg").Show(false);
42 #endif
43
44 UpdateInfo();
45
46 // player should sit down if possible
47 PlayerBase player = PlayerBase.Cast(GetGame().GetPlayer());
48 if (player.GetEmoteManager() && !player.IsRestrained() && !player.IsUnconscious())
49 {
50 player.GetEmoteManager().CreateEmoteCBFromMenu(EmoteConstants.ID_EMOTE_SITA);
51 player.GetEmoteManager().GetEmoteLauncher().SetForced(EmoteLauncher.FORCE_DIFFERENT);
52 }
53
54 return layoutRoot;
55 }
private TextWidget m_DescriptionText
Definition: logoutmenu.c:5
private TextWidget m_LogoutTimeText
Definition: logoutmenu.c:4
private ButtonWidget m_bLogoutNow
Definition: logoutmenu.c:6
private ButtonWidget m_bCancel
Definition: logoutmenu.c:7
void UpdateInfo()
Definition: logoutmenu.c:144

References WorkspaceWidget::CreateWidgets(), EmoteLauncher::FORCE_DIFFERENT, GetGame(), GetPlayer(), InputUtils::GetRichtextButtonIconFromInputAction(), CGame::GetWorkspace(), InputUtils::ICON_SCALE_TOOLBAR, EmoteConstants::ID_EMOTE_SITA, and UpdateInfo().

◆ Init() [17/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

gameplay cfg json overrides handling

override the CfgGameplayHandler.GetMapIgnoreNavItemsOwnership()

Definition at line 37 of file mapmenu.c.

38 {
39 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/day_z_map.layout");
40 m_Hud = IngameHud.Cast(GetGame().GetMission().GetHud());
41 m_IsOpenning = true;
42
43 /*MapWidget m = MapWidget.Cast(layoutRoot.FindAnyWidget("Map"));
44 if (m)
45 {
46 m.AddUserMark("2681 4.7 1751", "Lalal", ARGB(255,255,0,0), "\\dz\\gear\\navigation\\data\\map_tree_ca.paa");
47 m.AddUserMark("2683 4.7 1851", "Lala2", ARGB(255,0,255,0), "\\dz\\gear\\navigation\\data\\map_bunker_ca.paa");
48 m.AddUserMark("2670 4.7 1651", "Lala3", ARGB(255,0,0,255), "\\dz\\gear\\navigation\\data\\map_busstop_ca.paa");
49 }*/
50
51 Widget mapToolsContainer = layoutRoot.FindAnyWidget("Map_Tools_Container");
52 mapToolsContainer.GetScript(m_LegendResizer);
53
54 m_MapWidgetInstance = MapWidget.Cast(layoutRoot.FindAnyWidget("Map"));
55 m_GPSMarker = layoutRoot.FindAnyWidget("GPSMarkerCircle");
56 m_GPSMarkerArrow = ImageWidget.Cast(layoutRoot.FindAnyWidget("GPSMarkerArrow"));
57 m_UpperLegendContainer = layoutRoot.FindAnyWidget("Tools_Extra");
58 layoutRoot.Update();
59 m_ToolsCompassBase = layoutRoot.FindAnyWidget("Tools_Compass_Base");
60 m_ToolsCompassArrow = ImageWidget.Cast(layoutRoot.FindAnyWidget("Tools_Compass_Arrow"));
61 m_ToolsCompassAzimuth = TextWidget.Cast(layoutRoot.FindAnyWidget("Tools_Compass_Azimuth"));
62 m_ToolsGPSXText = TextWidget.Cast(layoutRoot.FindAnyWidget("Tools_GPS_X_Value"));
63 m_ToolsGPSYText = TextWidget.Cast(layoutRoot.FindAnyWidget("Tools_GPS_Y_Value"));
64 m_ToolsGPSElevationText = TextWidget.Cast(layoutRoot.FindAnyWidget("Tools_GPS_Elevation_Value"));
65 m_ToolsScaleContourText = TextWidget.Cast(layoutRoot.FindAnyWidget("Tools_Scale_Contour_Value"));
66 m_ToolsScaleCellSizeText = TextWidget.Cast(layoutRoot.FindAnyWidget("Tools_Scale_CellSize_Value"));
67 m_ToolsScaleCellSizeCanvas = CanvasWidget.Cast(layoutRoot.FindAnyWidget("Tools_Scale_CellSize_Canvas"));
68
69 float canvasHeight = 0;
71
73 {
74 float scale;
75 vector mapPosition;
76 PlayerBase player = PlayerBase.Cast(g_Game.GetPlayer());
77 if (player && !player.GetLastMapInfo(scale, mapPosition))
78 {
79 vector tempPosition = GetGame().ConfigGetVector(string.Format("CfgWorlds %1 centerPosition", GetGame().GetWorldName()));
80 scale = 0.33;
81 mapPosition = Vector(tempPosition[0], tempPosition[1], tempPosition[2]);
82 }
83
85 m_MapWidgetInstance.SetMapPos(mapPosition);
86
87 m_HasCompass = false;
88 m_HasGPS = false;
89
94
95 if (player)
96 {
97 m_MapNavigationBehaviour = player.GetMapNavigationBehaviour();
99 {
100 m_HasGPS = (m_MapNavigationBehaviour.GetNavigationType() & EMapNavigationType.GPS|EMapNavigationType.ALL == 0);
101 m_HasCompass = (m_MapNavigationBehaviour.GetNavigationType() & EMapNavigationType.COMPASS|EMapNavigationType.ALL == 0);
102
104 m_HasGPS = CfgGameplayHandler.GetMapIgnoreNavItemsOwnership() || m_HasGPS;
105 m_HasCompass = CfgGameplayHandler.GetMapIgnoreNavItemsOwnership() || m_HasCompass;
106
107 if (m_HasGPS)
108 {
111 {
114 }
115 }
116
117 if (m_HasCompass)
118 {
122 {
124 }
125 }
126
128 if ((!m_HasGPS && !m_HasCompass) || !CfgGameplayHandler.GetMapDisplayNavigationInfo())
129 {
131 }
132 }
133 }
134
136
137 if (m_Hud)
138 {
139 m_Hud.ShowHudUI(false);
140 m_Hud.ShowQuickbarUI(false);
141 }
142 }
143
144 return layoutRoot;
145 }
proto native vector ConfigGetVector(string path)
Get vector value from config on path.
static bool GetMapDisplayPlayerPosition()
static bool GetMapDisplayNavigationInfo()
static bool GetMapIgnoreNavItemsOwnership()
proto native void SetScale(float scale)
proto native void SetMapPos(vector worldPos)
protected TextWidget m_ToolsGPSYText
Definition: mapmenu.c:29
protected Widget m_ToolsCompassBase
Definition: mapmenu.c:23
protected Widget m_UpperLegendContainer
Definition: mapmenu.c:22
protected void SetGPSDirectionVisibility(bool pState)
Definition: mapmenu.c:370
protected TextWidget m_ToolsGPSXText
Definition: mapmenu.c:28
protected bool m_HasCompass protected bool m_HasGPS protected bool m_IsOpenning
Definition: mapmenu.c:10
protected void SetGPSMarkerVisibility(bool pState)
Definition: mapmenu.c:362
protected ref MapHandler m_MapMenuHandler
Definition: mapmenu.c:15
protected ref MapNavigationBehaviour m_MapNavigationBehaviour
Definition: mapmenu.c:35
protected TextWidget m_ToolsScaleContourText
Definition: mapmenu.c:26
protected ImageWidget m_GPSMarkerArrow
Definition: mapmenu.c:21
protected float m_ToolScaleCellSizeCanvasWidth
Definition: mapmenu.c:12
protected TextWidget m_ToolsScaleCellSizeText
Definition: mapmenu.c:30
protected ref SizeToChild m_LegendResizer
Definition: mapmenu.c:17
protected CanvasWidget m_ToolsScaleCellSizeCanvas
Definition: mapmenu.c:31
protected TextWidget m_ToolsCompassAzimuth
Definition: mapmenu.c:25
protected void SetUpperLegendVisibility(bool pState)
Definition: mapmenu.c:378
protected Widget m_GPSMarker
Definition: mapmenu.c:20
protected TextWidget m_ToolsGPSElevationText
Definition: mapmenu.c:27
protected void SetCompassUIVisibility(bool pState)
Definition: mapmenu.c:349
protected ImageWidget m_ToolsCompassArrow
Definition: mapmenu.c:24
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
EMapNavigationType

References CGame::ConfigGetVector(), WorkspaceWidget::CreateWidgets(), g_Game, GetGame(), CfgGameplayHandler::GetMapDisplayNavigationInfo(), CfgGameplayHandler::GetMapDisplayPlayerPosition(), CfgGameplayHandler::GetMapIgnoreNavItemsOwnership(), CGame::GetWorkspace(), m_Hud, SetCompassUIVisibility(), SetGPSDirectionVisibility(), SetGPSMarkerVisibility(), SetUpperLegendVisibility(), Hud::ShowHudUI(), Hud::ShowQuickbarUI(), and Vector().

◆ Init() [18/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 82 of file charactercreationmenu.c.

83 {
84 #ifdef PLATFORM_CONSOLE
85 layoutRoot = GetGame().GetWorkspace().CreateWidgets( "gui/layouts/new_ui/character_creation/xbox/character_creation.layout" );
86 m_CharacterSaved = false;
87 m_ConsoleSave = layoutRoot.FindAnyWidget( "save_console" );
88 #else
89 layoutRoot = GetGame().GetWorkspace().CreateWidgets( "gui/layouts/new_ui/character_creation/pc/character_creation.layout" );
90 #endif
91
92 m_CharacterRotationFrame = layoutRoot.FindAnyWidget( "character_rotation_frame" );
93 m_Apply = layoutRoot.FindAnyWidget( "apply" );
94 m_Save = layoutRoot.FindAnyWidget( "save" );
95 m_RandomizeCharacter = layoutRoot.FindAnyWidget( "randomize_character" );
96 m_BackButton = layoutRoot.FindAnyWidget( "back" );
97 m_Version = TextWidget.Cast( layoutRoot.FindAnyWidget( "version" ) );
98 m_DetailsRoot = layoutRoot.FindAnyWidget( "menu_details_tooltip" );
99 m_DetailsLabel = TextWidget.Cast( m_DetailsRoot.FindAnyWidget( "menu_details_label" ) );
100 m_DetailsText = RichTextWidget.Cast( m_DetailsRoot.FindAnyWidget( "menu_details_tooltip_content" ) );
101 m_CharacterHeaderText = TextWidget.Cast(layoutRoot.FindAnyWidget( "char_header_text" ));
102 m_PlayedCharacterInfo = layoutRoot.FindAnyWidget( "played_char_info" );
103
104 string version;
105 GetGame().GetVersion( version );
106 #ifdef PLATFORM_CONSOLE
107 version = "#main_menu_version" + " " + version + " (" + g_Game.GetDatabaseID() + ")";
108 #else
109 version = "#main_menu_version" + " " + version;
110 #endif
111 m_Version.SetText( version );
112
114 {
116 /*#ifdef PLATFORM_CONSOLE
117 //m_Scene.GetIntroCharacter().SetToDefaultCharacter();
118 m_Scene.GetIntroCharacter().LoadCharacterData( m_Scene.GetIntroCharacter().GetCharacterObj().GetPosition(), m_Scene.GetIntroCharacter().GetCharacterObj().GetDirection(), true );
119 #endif;*/
120 }
121
122 m_NameSelector = new OptionSelectorEditbox( layoutRoot.FindAnyWidget( "character_name_setting_option" ), m_Scene.GetIntroCharacter().GetCharacterName(), null, false );
123 m_GenderSelector = new OptionSelectorMultistateCharacterMenu( layoutRoot.FindAnyWidget( "character_gender_setting_option" ), 0, null, false, m_Scene.GetIntroCharacter().GetCharGenderList() );
124 if ( m_Scene.GetIntroCharacter().IsCharacterFemale() )
125 {
126 m_GenderSelector.SetValue( "Female" );
127 m_SkinSelector = new OptionSelectorMultistateCharacterMenu( layoutRoot.FindAnyWidget( "character_head_setting_option" ), 0, null, false, m_Scene.GetIntroCharacter().GetCharList( ECharGender.Female ) );
128 }
129 else
130 {
131 m_GenderSelector.SetValue( "Male" );
132 m_SkinSelector = new OptionSelectorMultistateCharacterMenu( layoutRoot.FindAnyWidget( "character_head_setting_option" ), 0, null, false, m_Scene.GetIntroCharacter().GetCharList( ECharGender.Male ) );
133 }
134
135 m_TopSelector = new OptionSelectorMultistateCharacterMenu( layoutRoot.FindAnyWidget( "character_top_setting_option" ), 0, null, false, DefaultCharacterCreationMethods.GetConfigAttachmentTypes(InventorySlots.BODY) );
136 m_BottomSelector = new OptionSelectorMultistateCharacterMenu( layoutRoot.FindAnyWidget( "character_bottom_setting_option" ), 0, null, false, DefaultCharacterCreationMethods.GetConfigAttachmentTypes(InventorySlots.LEGS) );
137 m_ShoesSelector = new OptionSelectorMultistateCharacterMenu( layoutRoot.FindAnyWidget( "character_shoes_setting_option" ), 0, null, false, DefaultCharacterCreationMethods.GetConfigAttachmentTypes(InventorySlots.FEET) );
138
139 PlayerBase scene_char = GetPlayerObj();
140 if( scene_char )
141 {
142 Object obj = scene_char.GetInventory().FindAttachment(InventorySlots.BODY);
143 if( obj )
144 m_TopSelector.SetValue( obj.GetType(), false );
145
146 obj = scene_char.GetInventory().FindAttachment(InventorySlots.LEGS);
147 if( obj )
148 m_BottomSelector.SetValue( obj.GetType(), false );
149
150 obj = scene_char.GetInventory().FindAttachment(InventorySlots.FEET);
151 if( obj )
152 m_ShoesSelector.SetValue( obj.GetType(), false );
153
154 m_SkinSelector.SetValue( scene_char.GetType() );
155 }
156
157 m_GenderSelector.m_OptionChanged.Insert( GenderChanged );
158 m_SkinSelector.m_OptionChanged.Insert( SkinChanged );
159 m_TopSelector.m_OptionChanged.Insert( TopChanged );
160 m_BottomSelector.m_OptionChanged.Insert( BottomChanged );
161 m_ShoesSelector.m_OptionChanged.Insert( ShoesChanged );
162
163 #ifdef PLATFORM_CONSOLE
165 #endif
166
167 Refresh();
168 SetCharacter();
170
173
174 OnInputDeviceChanged(GetGame().GetInput().GetCurrentInputDevice());
175
176 return layoutRoot;
177 }
protected RichTextWidget m_DetailsText
override void Refresh()
Definition: chatinputmenu.c:68
protected Widget m_BackButton
protected TextWidget m_DetailsLabel
PlayerBase GetPlayerObj()
protected Widget m_CharacterRotationFrame
protected TextWidget m_CharacterHeaderText
protected Widget m_PlayedCharacterInfo
protected Widget m_DetailsRoot
void OptionSelectorMultistateCharacterMenu(Widget parent, int current_index, ScriptedWidgetEventHandler parent_c, bool disabled, notnull array< string > options)

References CheckNewOptions(), WorkspaceWidget::CreateWidgets(), g_Game, GetGame(), GetInput(), DayZIntroSceneXbox::GetIntroCharacter(), CGame::GetMission(), Mission::GetOnInputDeviceChanged(), Mission::GetOnInputPresetChanged(), GetPlayerObj(), CGame::GetVersion(), CGame::GetWorkspace(), ScriptInvoker::Insert(), OnInputDeviceChanged(), OnInputDeviceChanged(), OnInputPresetChanged(), OptionSelectorMultistateCharacterMenu(), Refresh(), SetCharacter(), and UpdateControlsElements().

◆ Init() [19/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 28 of file creditsmenu.c.

29 {
30 float x_f;
31 int x, y;
32
33 layoutRoot = GetGame().GetWorkspace().CreateWidgets( "gui/layouts/new_ui/credits/credits_menu.layout", null );
34 m_Logo = ImageWidget.Cast( layoutRoot.FindAnyWidget( "Logo" ) );
35 m_Scroller = ScrollWidget.Cast( layoutRoot.FindAnyWidget( "CreditsPanel" ) );
36 m_Content = WrapSpacerWidget.Cast( layoutRoot.FindAnyWidget( "CreditsContent" ) );
37 m_InfoPanelText = RichTextWidget.Cast( layoutRoot.FindAnyWidget( "InfoPanelText" ) );
38 m_InfoPanel = layoutRoot.FindAnyWidget( "InfoPanel" );
39
40 GetScreenSize( x, y );
41
45
46 m_Scroller.VScrollToPos01( 0 );
47 m_Scroller.GetScreenSize( x_f, m_ScrollSize );
48
49 GetGame().GameScript.Call( this, "LoadDataAsync", null );
50
51 UpdateInfoPanelText(GetGame().GetInput().GetCurrentInputDevice());
52
53 return layoutRoot;
54 }
ScriptModule GameScript
Definition: game.c:12
static protected float LOGO_FADEIN_TIME
Definition: creditsmenu.c:4
protected Widget m_InfoPanel
Definition: creditsmenu.c:26
protected float m_LogoFadeInIncrement
Definition: creditsmenu.c:10
protected float m_ScrollSize
Definition: creditsmenu.c:15
protected RichTextWidget m_InfoPanelText
Definition: creditsmenu.c:25
protected ScrollWidget m_Scroller
Definition: creditsmenu.c:23
protected float m_MenuFadeInIncrement
Definition: creditsmenu.c:7
void UpdateInfoPanelText(int input_device_type)
Definition: creditsmenu.c:117
static protected float MENU_FADEIN_TIME
Definition: creditsmenu.c:3
protected float m_ScrollIncrement
Definition: creditsmenu.c:12
static protected float CREDIT_SCROLL_SPEED
Definition: creditsmenu.c:5
protected WrapSpacerWidget m_Content
Definition: creditsmenu.c:24
protected ImageWidget m_Logo
Definition: creditsmenu.c:22
proto volatile int Call(Class inst, string function, void parm)
proto void GetScreenSize(out int x, out int y)

References ScriptModule::Call(), WorkspaceWidget::CreateWidgets(), CGame::GameScript, GetGame(), GetInput(), GetScreenSize(), CGame::GetWorkspace(), LOGO_FADEIN_TIME, MENU_FADEIN_TIME, UpdateInfoPanelText(), x, and y.

◆ Init() [20/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 25 of file keybindingsmenu.c.

26 {
27 Input input = GetGame().GetInput();
28 layoutRoot = GetGame().GetWorkspace().CreateWidgets( "gui/layouts/new_ui/options/pc/keybinding_menu.layout", null );
29
30 m_Version = TextWidget.Cast( layoutRoot.FindAnyWidget( "version" ) );
31 m_Apply = ButtonWidget.Cast( layoutRoot.FindAnyWidget( "apply" ) );
32 m_Back = ButtonWidget.Cast( layoutRoot.FindAnyWidget( "back" ) );
33 m_Undo = ButtonWidget.Cast( layoutRoot.FindAnyWidget( "reset" ) );
34 m_Defaults = ButtonWidget.Cast( layoutRoot.FindAnyWidget( "defaults" ) );
35
36 layoutRoot.FindAnyWidget( "Tabber" ).GetScript( m_Tabber );
37
38 string version;
39 GetGame().GetVersion( version );
40 #ifdef PLATFORM_CONSOLE
41 version = "#main_menu_version" + " " + version + " (" + g_Game.GetDatabaseID() + ")";
42 #else
43 version = "#main_menu_version" + " " + version;
44 #endif
45 m_Version.SetText( version );
46
47 #ifdef PLATFORM_PS4
48 string back = "circle";
49 if( GetGame().GetInput().GetEnterButton() == GamepadButton.A )
50 {
51 back = "circle";
52 }
53 else
54 {
55 back = "cross";
56 }
57 ImageWidget toolbar_b = layoutRoot.FindAnyWidget( "BackIcon" );
58 toolbar_b.LoadImageFile( 0, "set:playstation_buttons image:" + back );
59 #endif
60
62 CreateTabs();
64
65 InitPresets( -1, layoutRoot.FindAnyWidget( "group_header" ), input );
66 m_Tabber.m_OnTabSwitch.Insert(UpdateTabContent);
67 m_Tabber.SelectTabControl( 0 );
68 m_Tabber.SelectTabPanel( 0 );
69 g_Game.SetKeyboardHandle( this );
70 m_Tabber.RefreshTab(true);
71
73 m_Apply.SetFlags( WidgetFlags.IGNOREPOINTER );
75 m_Undo.SetFlags( WidgetFlags.IGNOREPOINTER );
76 ColorWhite( m_Defaults, null );
77 m_Defaults.ClearFlags( WidgetFlags.IGNOREPOINTER );
78
79 return layoutRoot;
80 }
Definition: input.c:11
protected void InitInputSortingMap()
void InitPresets(int index, Widget parent, Input input)
void CreateGroupContainer()
GamepadButton
Definition: ensystem.c:341

References ColorDisabled(), ColorWhite(), CreateGroupContainer(), CreateTabs(), WorkspaceWidget::CreateWidgets(), g_Game, GetGame(), CGame::GetInput(), GetInput(), CGame::GetVersion(), CGame::GetWorkspace(), InitInputSortingMap(), InitPresets(), and m_Back.

◆ Init() [21/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 43 of file mainmenu.c.

44 {
45 layoutRoot = GetGame().GetWorkspace().CreateWidgets( "gui/layouts/new_ui/main_menu.layout" );
46
47 m_Play = layoutRoot.FindAnyWidget( "play" );
48 m_ChooseServer = layoutRoot.FindAnyWidget( "choose_server" );
49 m_CustomizeCharacter = layoutRoot.FindAnyWidget( "customize_character" );
50 m_PlayVideo = layoutRoot.FindAnyWidget( "play_video" );
51 m_Tutorials = layoutRoot.FindAnyWidget( "tutorials" );
52 m_TutorialButton = layoutRoot.FindAnyWidget( "tutorial_button" );
53 m_MessageButton = layoutRoot.FindAnyWidget( "message_button" );
54 m_SettingsButton = layoutRoot.FindAnyWidget( "settings_button" );
55 m_Exit = layoutRoot.FindAnyWidget( "exit_button" );
56 m_PrevCharacter = layoutRoot.FindAnyWidget( "prev_character" );
57 m_NextCharacter = layoutRoot.FindAnyWidget( "next_character" );
58
59 m_Version = TextWidget.Cast( layoutRoot.FindAnyWidget( "version" ) );
60 m_ModdedWarning = TextWidget.Cast( layoutRoot.FindAnyWidget( "ModdedWarning" ) );
61 m_CharacterRotationFrame = layoutRoot.FindAnyWidget( "character_rotation_frame" );
62
63 m_LastPlayedTooltip = layoutRoot.FindAnyWidget( "last_server_info" );
64 m_LastPlayedTooltip.Show(false);
65 m_LastPlayedTooltipLabel = m_LastPlayedTooltip.FindAnyWidget( "last_server_info_label" );
66 m_LastPlayedTooltipName = TextWidget.Cast( m_LastPlayedTooltip.FindAnyWidget( "last_server_info_name" ) );
67 m_LastPlayedTooltipIP = TextWidget.Cast( m_LastPlayedTooltip.FindAnyWidget( "last_server_info_ip" ) );
68 m_LastPlayedTooltipPort = TextWidget.Cast( m_LastPlayedTooltip.FindAnyWidget( "last_server_info_port" ) );
69
70 m_LastPlayedTooltipTimer = new WidgetFadeTimer();
71
72 m_Stats = new MainMenuStats( layoutRoot.FindAnyWidget( "character_stats_root" ) );
73
74 m_Mission = MissionMainMenu.Cast( GetGame().GetMission() );
75
77
78 m_ScenePC = m_Mission.GetIntroScenePC();
79
80 if( m_ScenePC )
81 {
83 }
84
85 m_PlayVideo.Show( false );
86
87 m_PlayerName = TextWidget.Cast( layoutRoot.FindAnyWidget("character_name_text") );
88
89 // Set Version
90 string version;
91 GetGame().GetVersion( version );
92 m_Version.SetText( "#main_menu_version" + " " + version );
93
95
96 SetFocus( null );
97
98 Refresh();
99
100 LoadMods();
101
102 GetDayZGame().GetBacklit().MainMenu_OnShow();
103
104 g_Game.SetLoadState( DayZLoadState.MAIN_MENU_CONTROLLER_SELECT );
105
106 return layoutRoot;
107 }
proto native void ScreenFadeOut(float duration)
protected Widget m_SettingsButton
Definition: mainmenu.c:21
protected TextWidget m_LastPlayedTooltipIP
Definition: mainmenu.c:32
protected Widget m_LastPlayedTooltip
Definition: mainmenu.c:29
protected Widget m_Exit
Definition: mainmenu.c:22
protected Widget m_NextCharacter
Definition: mainmenu.c:27
protected Widget m_CustomizeCharacter
Definition: mainmenu.c:16
protected TextWidget m_LastPlayedTooltipName
Definition: mainmenu.c:31
protected Widget m_TutorialButton
Definition: mainmenu.c:19
void LoadMods()
Definition: mainmenu.c:114
protected MissionMainMenu m_Mission
Definition: mainmenu.c:6
protected Widget m_Tutorials
Definition: mainmenu.c:18
protected Widget m_PrevCharacter
Definition: mainmenu.c:26
protected Widget m_LastPlayedTooltipLabel
Definition: mainmenu.c:30
protected Widget m_ChooseServer
Definition: mainmenu.c:15
protected Widget m_PlayVideo
Definition: mainmenu.c:17
protected TextWidget m_PlayerName
Definition: mainmenu.c:9
protected Widget m_MessageButton
Definition: mainmenu.c:20
protected ref MainMenuStats m_Stats
Definition: mainmenu.c:3
protected ref WidgetFadeTimer m_LastPlayedTooltipTimer
Definition: mainmenu.c:35
protected ref Widget m_LastFocusedButton
Definition: mainmenu.c:36
protected TextWidget m_LastPlayedTooltipPort
Definition: mainmenu.c:33
DayZGame GetDayZGame()
Definition: dayzgame.c:3146

References WorkspaceWidget::CreateWidgets(), g_Game, GetDayZGame(), GetGame(), CGame::GetUIManager(), CGame::GetVersion(), CGame::GetWorkspace(), LoadMods(), m_Mission, m_Play, m_PlayerName, m_Stats, Refresh(), DayZIntroScene::ResetIntroCamera(), UIManager::ScreenFadeOut(), and SetFocus().

◆ Init() [22/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 25 of file mainmenuconsoles.c.

26 {
27 layoutRoot = GetGame().GetWorkspace().CreateWidgets( "gui/layouts/new_ui/main_menu_console.layout" );
28
29 m_PlayerName = TextWidget.Cast( layoutRoot.FindAnyWidget("character_name_xbox") );
30
31 m_OpenDLC = layoutRoot.FindAnyWidget( "show_dlc" );
32 m_ChangeAccount = layoutRoot.FindAnyWidget( "choose_account" );
33 m_CustomizeCharacter = layoutRoot.FindAnyWidget( "customize_character" );
34 m_PlayVideo = layoutRoot.FindAnyWidget( "play_video" );
35 m_Tutorials = layoutRoot.FindAnyWidget( "tutorials" );
36 m_Options = layoutRoot.FindAnyWidget( "options" );
37 m_Controls = layoutRoot.FindAnyWidget( "controls" );
38 m_Play = layoutRoot.FindAnyWidget( "play" );
39 m_MessageButton = layoutRoot.FindAnyWidget( "message_button" );
40
41 m_Version = TextWidget.Cast( layoutRoot.FindAnyWidget( "version" ) );
42 m_Mission = MissionMainMenu.Cast( GetGame().GetMission() );
44
46
47 string launch_done;
48 if ( !GetGame().GetProfileString( "FirstLaunchDone", launch_done ) || launch_done != "true" )
49 {
50 GetGame().SetProfileString( "FirstLaunchDone", "true" );
51 GetGame().GetUIManager().ShowDialog( "#main_menu_tutorial", "#main_menu_tutorial_desc", 555, DBT_YESNO, DBB_YES, DMT_QUESTION, this );
53 }
54
56 LoadMods();
57 Refresh();
58
61
62 OnInputDeviceChanged(GetGame().GetInput().GetCurrentInputDevice());
63
64 return layoutRoot;
65 }
proto native void SetProfileString(string name, string value)
Sets string to profile variable.
proto native void SaveProfile()
Saves profile on disk.
protected Widget m_Controls
protected Widget m_OpenDLC
protected Widget m_ChangeAccount

References WorkspaceWidget::CreateWidgets(), GetGame(), GetInput(), CGame::GetMission(), Mission::GetOnInputDeviceChanged(), Mission::GetOnInputPresetChanged(), CGame::GetUIManager(), CGame::GetWorkspace(), ScriptInvoker::Insert(), LoadMods(), m_Controls, m_Mission, m_Play, m_PlayerName, OnInputDeviceChanged(), OnInputDeviceChanged(), OnInputPresetChanged(), Refresh(), CGame::SaveProfile(), UIManager::ScreenFadeOut(), CGame::SetProfileString(), UIManager::ShowDialog(), and UpdateControlsElements().

◆ Init() [23/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 11 of file mainmenuvideo.c.

12 {
13 layoutRoot = GetGame().GetWorkspace().CreateWidgets( "gui/layouts/xbox/video_menu.layout" );
14 m_Video = VideoWidget.Cast( layoutRoot.FindAnyWidget( "video" ) );
15 m_PlayPauseText = TextWidget.Cast( layoutRoot.FindAnyWidget( "PauseVideoText" ) );
16
17 m_VideoPlayTimer = new Timer();
18 m_VideoFadeTimer = new WidgetFadeTimer();
19
20 layoutRoot.FindAnyWidget("ConsoleToolbar").Show(true);
21 RichTextWidget toolbar_b = RichTextWidget.Cast(layoutRoot.FindAnyWidget("BackIcon"));
22 toolbar_b.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUIBack", "", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
23
24 #ifdef PLATFORM_PS4
25 m_Video.LoadVideo( "/app0/video/DayZ_onboarding_MASTER.mp4", 0 );
26 #else
27 m_Video.LoadVideo( "G:\\video\\DayZ_onboarding_MASTER.mp4", 0 );
28 #endif
29 m_Video.Play( VideoCommand.REWIND );
30 m_Video.Play( VideoCommand.PLAY );
31 m_VideoFadeTimer.FadeIn( m_Video, 1.5 );
32 m_VideoPlayTimer.Run( 0.005, this, "PlayVideoLoop", null, true );
33
34 return layoutRoot;
35 }
protected ref Timer m_VideoPlayTimer
Definition: mainmenuvideo.c:7
protected TextWidget m_PlayPauseText
Definition: mainmenuvideo.c:5
protected ref WidgetFadeTimer m_VideoFadeTimer
Definition: mainmenuvideo.c:8
protected ref MainMenuVideo m_Video
Definition: mainmenu.c:4
VideoCommand
Definition: enwidgets.c:485

References WorkspaceWidget::CreateWidgets(), GetGame(), InputUtils::GetRichtextButtonIconFromInputAction(), CGame::GetWorkspace(), and InputUtils::ICON_SCALE_TOOLBAR.

◆ Init() [24/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 24 of file tutorialsmenu.c.

25 {
26 #ifdef PLATFORM_CONSOLE
27 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/tutorials/xbox/tutorials.layout");
28 #else
29 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/tutorials/pc/tutorials.layout");
30 #endif
31
32 m_InfoTextLeft = layoutRoot.FindAnyWidget("InfoTextLeft");
33 m_InfoTextRight = layoutRoot.FindAnyWidget("InfoTextRight");
34
35 m_Back = ButtonWidget.Cast(layoutRoot.FindAnyWidget("back"));
36
37 layoutRoot.FindAnyWidget("Tabber").GetScript(m_TabScript);
38 m_TabScript.m_OnTabSwitch.Insert(DrawConnectingLines);
39
40 #ifdef PLATFORM_CONSOLE
41 if (GetGame().GetInput().IsEnabledMouseAndKeyboard())
42 {
43 m_KeybindsTab = new TutorialKeybinds(layoutRoot.FindAnyWidget("Tab_6"), this);
44 m_TabScript.EnableTabControl(6, true);
45 }
46 #endif
47
48 m_tab_images[0] = ImageWidget.Cast(layoutRoot.FindAnyWidget("MovementTabBackdropImageWidget"));
49 m_tab_images[1] = ImageWidget.Cast(layoutRoot.FindAnyWidget("WeaponsAndActionsBackdropImageWidget"));
50 m_tab_images[2] = ImageWidget.Cast(layoutRoot.FindAnyWidget("InventoryTabBackdropImageWidget"));
51 m_tab_images[3] = ImageWidget.Cast(layoutRoot.FindAnyWidget("MenusTabBackdropImageWidget"));
52
53 #ifdef PLATFORM_CONSOLE
55 #endif
56
57 PPERequesterBank.GetRequester(PPERequester_TutorialMenu).Start(new Param1<float>(0.6));
59
62
63 OnInputDeviceChanged(GetGame().GetInput().GetCurrentInputDevice());
64
65 return layoutRoot;
66 }
protected ImageWidget m_tab_images[TABS_COUNT]
Definition: tutorialsmenu.c:17
protected ref TutorialKeybinds m_KeybindsTab
Definition: tutorialsmenu.c:19

References WorkspaceWidget::CreateWidgets(), DrawConnectingLines(), DrawConnectingLines(), GetGame(), GetInput(), CGame::GetMission(), Mission::GetOnInputDeviceChanged(), Mission::GetOnInputPresetChanged(), CGame::GetWorkspace(), ScriptInvoker::Insert(), m_Back, m_tab_images, m_TabScript, OnInputDeviceChanged(), OnInputDeviceChanged(), OnInputPresetChanged(), and UpdateControlsElements().

◆ Init() [25/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 32 of file optionsmenu.c.

33 {
34 m_Options = new GameOptions();
35
36 #ifdef PLATFORM_XBOX
37 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/options/xbox/options_menu.layout", null);
38 #else
39 #ifdef PLATFORM_PS4
40 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/options/ps/options_menu.layout", null);
41 #else
42 #ifdef PLATFORM_WINDOWS
43 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/options/pc/options_menu.layout", null);
44 #endif
45 #endif
46 #endif
47
48 layoutRoot.FindAnyWidget("Tabber").GetScript(m_Tabber);
49
50 m_Details = layoutRoot.FindAnyWidget("settings_details");
51 m_Version = TextWidget.Cast(layoutRoot.FindAnyWidget("version"));
52
53 m_GameTab = new OptionsMenuGame(layoutRoot.FindAnyWidget("Tab_0"), m_Details, m_Options, this);
54 m_SoundsTab = new OptionsMenuSounds(layoutRoot.FindAnyWidget("Tab_1"), m_Details, m_Options, this);
55
56 #ifdef PLATFORM_XBOX
57 m_ControlsTab = new OptionsMenuControls(layoutRoot.FindAnyWidget("Tab_2"), m_Details, m_Options, this);
58 #else
59 m_VideoTab = new OptionsMenuVideo(layoutRoot.FindAnyWidget("Tab_2"), m_Details, m_Options, this);
60 m_ControlsTab = new OptionsMenuControls(layoutRoot.FindAnyWidget("Tab_3"), m_Details, m_Options, this);
61 #endif
62
63 m_Apply = ButtonWidget.Cast(layoutRoot.FindAnyWidget("apply"));
64 m_Back = ButtonWidget.Cast(layoutRoot.FindAnyWidget("back"));
65 m_Reset = ButtonWidget.Cast(layoutRoot.FindAnyWidget("reset"));
66 m_Defaults = ButtonWidget.Cast(layoutRoot.FindAnyWidget("defaults"));
67
68 m_ModalLock = false;
69 m_CanApplyOrReset = false;
70 m_CanToggle = false;
71
72 string version;
73 GetGame().GetVersion(version);
74 #ifdef PLATFORM_CONSOLE
75 version = "#main_menu_version" + " " + version + " (" + g_Game.GetDatabaseID() + ")";
76 #else
77 version = "#main_menu_version" + " " + version;
78 #endif
79 m_Version.SetText( version );
80
81 #ifdef PLATFORM_WINDOWS
82 SetFocus( layoutRoot );
83 #else
85 #endif
86
87 m_Tabber.m_OnTabSwitch.Insert(OnTabSwitch);
88 m_Tabber.m_OnAttemptTabSwitch.Insert(OnAttemptTabSwitch);
89
91 OnChanged();
92
93 return layoutRoot;
94 }
protected bool m_CanToggle
Definition: optionsmenu.c:25
protected Widget m_Details
Definition: optionsmenu.c:19
void OnAttemptTabSwitch(int source, int target)
Definition: optionsmenu.c:230
protected ref OptionsMenuVideo m_VideoTab
Definition: optionsmenu.c:9
void OnChanged()
Definition: optionsmenu.c:259
protected bool m_ModalLock
Definition: optionsmenu.c:23
void ToggleFocus()
Definition: optionsmenu.c:437
protected ref OptionsMenuSounds m_SoundsTab
Definition: optionsmenu.c:8

References WorkspaceWidget::CreateWidgets(), g_Game, GetGame(), CGame::GetMission(), Mission::GetOnInputPresetChanged(), CGame::GetVersion(), CGame::GetWorkspace(), ScriptInvoker::Insert(), m_Back, OnChanged(), OnInputPresetChanged(), SetFocus(), and ToggleFocus().

◆ Init() [26/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 27 of file serverbrowsermenunew.c.

28 {
29 #ifdef PLATFORM_CONSOLE
30 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/server_browser/xbox/server_browser.layout");
31 m_FavoritesTab = new ServerBrowserFavoritesTabConsolePages(layoutRoot.FindAnyWidget("Tab_0"), this, TabType.FAVORITE);
32 m_OfficialTab = new ServerBrowserTabConsolePages(layoutRoot.FindAnyWidget("Tab_1"), this, TabType.OFFICIAL);
33 m_CommunityTab = new ServerBrowserTabConsolePages(layoutRoot.FindAnyWidget("Tab_2"), this, TabType.COMMUNITY);
34 #else
35 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/server_browser/pc/server_browser.layout");
36 m_FavoritesTab = new ServerBrowserFavoritesTabPc(layoutRoot.FindAnyWidget("Tab_0"), this, TabType.FAVORITE);
37 m_OfficialTab = new ServerBrowserTabPc(layoutRoot.FindAnyWidget("Tab_1"), this, TabType.OFFICIAL);
38 m_CommunityTab = new ServerBrowserTabPc(layoutRoot.FindAnyWidget("Tab_2"), this, TabType.COMMUNITY);
39 m_LANTab = new ServerBrowserTabPc(layoutRoot.FindAnyWidget("Tab_3"), this, TabType.LAN);
40 #endif
41
42 layoutRoot.FindAnyWidget("Tabber").GetScript(m_Tabber);
43
44 m_Play = layoutRoot.FindAnyWidget("play");
45 m_Back = layoutRoot.FindAnyWidget("back_button");
46 m_CustomizeCharacter = layoutRoot.FindAnyWidget("customize_character");
47 m_PlayerName = TextWidget.Cast(layoutRoot.FindAnyWidget("character_name_text"));
48 m_Version = TextWidget.Cast(layoutRoot.FindAnyWidget("version"));
50
51 #ifndef PLATFORM_CONSOLE
52 // TODO: Temporary Hide for 1.0
53 layoutRoot.FindAnyWidget("customize_character").Show(false);
54 layoutRoot.FindAnyWidget("character").Show(false);
55 #endif
56
57 Refresh();
58
59 string version;
60 GetGame().GetVersion(version);
61
62 #ifdef PLATFORM_CONSOLE
63 version = "#main_menu_version" + " " + version + " (" + g_Game.GetDatabaseID() + ")";
64 if (GetGame().GetInput().IsEnabledMouseAndKeyboard())
65 {
66 layoutRoot.FindAnyWidget("play_panel_root").Show(true);
67 layoutRoot.FindAnyWidget("MouseAndKeyboardWarning").Show(true);
68 layoutRoot.FindAnyWidget("toolbar_bg").Show(false);
69 }
70 #else
71 version = "#main_menu_version" + " " + version;
72 #endif
73 m_Version.SetText(version);
74
79
80 m_Tabber.m_OnTabSwitch.Insert(OnTabSwitch);
81
83 //m_OfficialTab.LoadFakeData( 100 );
84
85 #ifdef PLATFORM_CONSOLE
87 //Sort init
88 TextWidget sort_text = TextWidget.Cast(layoutRoot.FindAnyWidget("SortText"));
89 sort_text.SetText("#str_serverbrowserroot_toolbar_bg_consoletoolbar_sort_sorttext0");
90 #endif
91
92 PPERequesterBank.GetRequester(PPERequester_ServerBrowserBlur).Start(new Param1<float>(0.5));
93
96 OnInputDeviceChanged(GetGame().GetInput().GetCurrentInputDevice());
97
98 return layoutRoot;
99 }
static void Init()
override void RefreshList()
TabType

References WorkspaceWidget::CreateWidgets(), g_Game, GetGame(), GetInput(), CGame::GetMission(), Mission::GetOnInputDeviceChanged(), Mission::GetOnInputPresetChanged(), CGame::GetVersion(), CGame::GetWorkspace(), OnlineServices::Init(), ScriptInvoker::Insert(), LoadFavoriteServers(), m_Back, m_PlayerName, OnlineServices::m_ServerModLoadAsyncInvoker, OnlineServices::m_ServersAsyncInvoker, OnInputDeviceChanged(), OnInputDeviceChanged(), OnInputPresetChanged(), OnLoadServerModsAsync(), Refresh(), and UpdateControlsElements().

◆ Init() [27/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 88 of file notemenu.c.

89 {
90 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/day_z_inventory_note.layout");
91 m_edit = MultilineEditBoxWidget.Cast( layoutRoot.FindAnyWidget("EditWidget") );
92 m_html = HtmlWidget.Cast( layoutRoot.FindAnyWidget("HtmlWidget") );
93 m_confirm_button = ButtonWidget.Cast( layoutRoot.FindAnyWidgetById(IDC_OK) );
94
95 return layoutRoot;
96 }
protected HtmlWidget m_html
Definition: notemenu.c:4
protected ButtonWidget m_confirm_button
Definition: notemenu.c:5
protected MultilineEditBoxWidget m_edit
Definition: notemenu.c:3
const int IDC_OK
Definition: constants.c:114

References WorkspaceWidget::CreateWidgets(), GetGame(), CGame::GetWorkspace(), and IDC_OK.

◆ Init() [28/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 11 of file presetsmenu.c.

12 {
13 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/day_z_options_controls_preset.layout");
14
15 m_schemes_list = TextListboxWidget.Cast( layoutRoot.FindAnyWidget("PresetListboxWidget") );
16
17 int c = GetGame().GetInput().GetProfilesCount();
18 for (int i = 0; i < c; i++)
19 {
20 string tmp;
22 m_schemes_list.AddItem(tmp, NULL, 0);
23 }
24
26 if (i >= 0 && i < c)
27 {
28 m_schemes_list.SelectRow(i);
29 }
30
31 return layoutRoot;
32 }
proto native int GetProfilesCount()
gets profile by name
proto native int GetCurrentProfile()
gets currently selected profile
private TextListboxWidget m_schemes_list
Definition: presetsmenu.c:60

References WorkspaceWidget::CreateWidgets(), Input::GetCurrentProfile(), GetGame(), CGame::GetInput(), Input::GetProfileName(), Input::GetProfilesCount(), and CGame::GetWorkspace().

◆ Init() [29/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 177 of file radialquickbarmenu.c.

178 {
179 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/radial_menu/radial_quickbar/radial_quickbar_menu.layout");
180 m_ItemCardPanel = layoutRoot.FindAnyWidget(RadialMenu.RADIAL_ITEM_CARD_CONTAINER);
181
182 //register gestures menu
183 RadialMenu.GetInstance().RegisterClass(this);
184
185 //delay updates until fully initialized
186 RadialMenu.GetInstance().SetWidgetInitialized(false);
187
188 //set radial menu properties
189 RadialMenu.GetInstance().SetWidgetProperties("gui/layouts/radial_menu/radial_quickbar/radial_quickbar_delimiter.layout");
190
191 //create content (widgets) for items
193
194 //set controller toolbar icons
195 #ifdef PLATFORM_CONSOLE
197 #endif
198
199 m_ToolbarPanel = layoutRoot.FindAnyWidget( "toolbar_bg" );
200 m_ToolbarPanel.Show( true );
201
202 return layoutRoot;
203 }

References WorkspaceWidget::CreateWidgets(), GetGame(), CGame::GetWorkspace(), RadialMenu(), and RefreshQuickbar().

◆ Init() [30/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 22 of file respawndialogue.c.

23 {
24 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/day_z_respawn_dialogue.layout");
25 m_DetailsRoot = layoutRoot.FindAnyWidget( "menu_details_tooltip" );
26 m_DetailsLabel = TextWidget.Cast( m_DetailsRoot.FindAnyWidget( "menu_details_label" ) );
27 m_DetailsText = RichTextWidget.Cast( m_DetailsRoot.FindAnyWidget( "menu_details_tooltip_content" ) );
28
29 Widget custom_respawn = layoutRoot.FindAnyWidget("respawn_button_custom");
30 SetFocus(custom_respawn);
31 return layoutRoot;
32 }

References WorkspaceWidget::CreateWidgets(), GetGame(), CGame::GetWorkspace(), and SetFocus().

◆ Init() [31/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 392 of file sceneeditormenu.c.

393 {
394 // Create Main layout menu
395 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/scene_editor/day_z_scene_editor.layout");
396 m_WgtPnlWrapper = layoutRoot.FindAnyWidget("pnl_presets_wrapper_outer");
397 m_SlWgtLoadedScene = TextWidget.Cast( layoutRoot.FindAnyWidget("txt_left_label_loaded_scene") );
398 // Find ListTextBoxWidget for objects list
399 m_SlWgtLbxObjectsList = TextListboxWidget.Cast(layoutRoot.FindAnyWidget("txtlist_left_items") );
400 // Find Edit Box for shearching in object list
401 m_SlWgtEbxFilter = EditBoxWidget.Cast(layoutRoot.FindAnyWidget("edit_left_search_item") );
402 // Find Select Button for selecting in object list
403 m_SlWgtSelect = ButtonWidget.Cast(layoutRoot.FindAnyWidget("btn_left_select") );
404 m_SlWgtFocus = ButtonWidget.Cast(layoutRoot.FindAnyWidget("btn_left_focus") );
405 // Find Popup main panel
406 m_WgtPopupsMain = layoutRoot.FindAnyWidget("pnl_popups");
407 // Find Poups backgroudn
408 m_WgtPopupsBg = layoutRoot.FindAnyWidget("pnl_popup_bg");
409 // Find Edit Box for shearching in class list
410 m_ClWgtEbxFilter = EditBoxWidget.Cast(layoutRoot.FindAnyWidget("edit_left_search_class") );
411 // Find ListTextBoxWidget for class list
412 m_ClWgtLbxClassesList = TextListboxWidget.Cast(layoutRoot.FindAnyWidget("txtlist_left_classes") );
413 // Find Buttons
414 m_WgtBtnSceneManager = ButtonWidget.Cast(layoutRoot.FindAnyWidget("btn_top_scene_manager") );
415 m_WgtBtnPositionManager = ButtonWidget.Cast(layoutRoot.FindAnyWidget("btn_top_position_manager") );
416 m_WgtBtnSceneSettings = ButtonWidget.Cast(layoutRoot.FindAnyWidget("btn_top_settings") );
417 m_ClWgtButtonAddAtt = ButtonWidget.Cast(layoutRoot.FindAnyWidget("btn_left_cl_add_attachment") );
418 m_WgtBtnSceneSave = ButtonWidget.Cast(layoutRoot.FindAnyWidget("btn_top_save_scene") );
419 m_WgtBtnEditorSettings = ButtonWidget.Cast(layoutRoot.FindAnyWidget("btn_top_editor_settings") );
420 m_WgtBtnEditInitScript = ButtonWidget.Cast(layoutRoot.FindAnyWidget("btn_right_prop_pos_iscr_value") );
421 m_WgtBtnDeleteRuler = ButtonWidget.Cast(layoutRoot.FindAnyWidget("btn_delete_ruler") );
422 m_WgtBtnLeftPresets = ButtonWidget.Cast(layoutRoot.FindAnyWidget("btn_left_presets") );
423
424 // Find Widgets for properties
425 m_PrWgtClassName = TextWidget.Cast(layoutRoot.FindAnyWidget("txt_right_prop_class_value") );
426 m_PrWgtPoxX = EditBoxWidget.Cast(layoutRoot.FindAnyWidget("ebx_right_prop_pos_x_value") );
427 m_PrWgtPoxY = EditBoxWidget.Cast(layoutRoot.FindAnyWidget("ebx_right_prop_pos_y_value") );
428 m_PrWgtPoxZ = EditBoxWidget.Cast(layoutRoot.FindAnyWidget("ebx_right_prop_pos_z_value") );
429 m_PrWgtDir = EditBoxWidget.Cast(layoutRoot.FindAnyWidget("ebx_right_prop_pos_dir_value") );
430 m_PrWgtDmg = EditBoxWidget.Cast(layoutRoot.FindAnyWidget("ebx_right_prop_pos_hlt_value") );
431 m_PrWgtAttRoot = layoutRoot.FindAnyWidget("pnl_right_inspector_attachments");
432 m_PrWgtAttTitle = layoutRoot.FindAnyWidget("pnl_att_title");
434
435 // Notify
436 m_NotifyWgtPanel = layoutRoot.FindAnyWidget("pnl_notify");
437 m_NotifyWgtPanel.SetAlpha(0.0);
438 m_NotifyFadeTimer = new WidgetFadeTimer;
439
440 // Register Poups
441 m_Popups.Insert(POPUP_ID_SCENE_MANAGER, new UIPopupScriptSceneManager(layoutRoot.FindAnyWidget("pnl_popup_scene_manager")));
442 m_Popups.Insert(POPUP_ID_POSITION_MANAGER, new UIPopupScriptPositionManager(layoutRoot.FindAnyWidget("pnl_popup_position_manager")));
443 m_Popups.Insert(POPUP_ID_SCENE_SETTINGS, new UIPopupScriptSceneSettings(layoutRoot.FindAnyWidget("pnl_popup_settings")) );
444 m_Popups.Insert(POPUP_ID_SCENE_NEW, new UIPopupScriptSceneNew(layoutRoot.FindAnyWidget("pnl_popup_scene_new")) );
445 m_Popups.Insert(POPUP_ID_SCENE_RENAME, new UIPopupScriptSceneRename(layoutRoot.FindAnyWidget("pnl_popup_scene_rename")) );
446 m_Popups.Insert(POPUP_ID_SCENE_DELETE, new UIPopupScriptSceneDelete(layoutRoot.FindAnyWidget("pnl_popup_scene_delete")) );
447 m_Popups.Insert(POPUP_ID_NOTIFY, new UIPopupScriptNotify(layoutRoot.FindAnyWidget("pnl_popup_notify")) );
448 m_Popups.Insert(POPUP_ID_EDITOR_SETTINGS, new UIPopupScriptEditorSettings(layoutRoot.FindAnyWidget("pnl_popup_editor_settings")));
449 m_Popups.Insert(POPUP_ID_INIT_SCRIPT, new UIPopupScriptInitScript(layoutRoot.FindAnyWidget("pnl_popup_init_script")));
450 m_Popups.Insert(POPUP_ID_PRESET_NEW, new UIPopupScriptPresetNew(layoutRoot.FindAnyWidget("pnl_popup_preset_new")));
451 m_Popups.Insert(POPUP_ID_PRESET_RENAME, new UIPopupScriptPresetRename(layoutRoot.FindAnyWidget("pnl_popup_preset_rename")));
452 m_Popups.Insert(POPUP_ID_CONFIGS, new UIPopupScriptConfigs(layoutRoot.FindAnyWidget("pnl_popup_configs")));
453
454 m_PresetsTextListbox = TextListboxWidget.Cast( layoutRoot.FindAnyWidget("pnl_presets") );
455 m_PresetItemsTextListbox = TextListboxWidget.Cast( layoutRoot.FindAnyWidget("pnl_preset_items") );
456 m_ConfigDebugProfileFixed = PluginConfigDebugProfileFixed.Cast( GetPlugin(PluginConfigDebugProfileFixed) );
458 m_PresetAddItemtButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget("btn_add_to_preset") );
459 m_PresetRemoveItemButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget("btn_remove_from_preset") );
460 m_SpawnOnGroundButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget("btn_spawn_on_ground") );
461 m_SpawnInInventoryButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget("btn_spawn_in_inventory") );
462 m_SpawnAsAttachmentButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget("btn_spawn_as_attachment") );
463 m_UpButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget("btn_up") );
464 m_DownButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget("btn_down") );
465 m_Developer = PluginDeveloper.Cast( GetPlugin(PluginDeveloper) );
466 m_QuantityEditBox = EditBoxWidget.Cast( layoutRoot.FindAnyWidget("txt_quantity_value") );
467 m_DamageEditBox = EditBoxWidget.Cast( layoutRoot.FindAnyWidget("txt_damage_value") );
468 m_SpawnDistanceEditBox = EditBoxWidget.Cast( layoutRoot.FindAnyWidget("txt_distance_value") );
469 m_PresetNewButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget("btn_new") );
470 m_PresetDeleteButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget("btn_delete") );
471 m_PresetRenameButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget("btn_rename") );
472 m_PresetSetDefaultButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget("btn_default") );
473 m_CopyToClipboardButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget("btn_copy_to_clipboard") );
474 m_ConfigsButton = EditBoxWidget.Cast( layoutRoot.FindAnyWidget("btn_top_configs") );
475 m_SpawnDistanceEditBox.SetText( m_ConfigDebugProfile.GetSpawnDistance().ToString() );
476
478
481
482 PopupHideAll();
483
484 return layoutRoot;
485 }
static const int POPUP_ID_SCENE_RENAME
protected PluginDeveloper m_Developer
protected ButtonWidget m_WgtBtnLeftPresets
static const int POPUP_ID_PRESET_NEW
protected Widget m_PrWgtAttTitle
protected ButtonWidget m_WgtBtnEditInitScript
protected ButtonWidget m_WgtBtnDeleteRuler
protected ButtonWidget m_DownButton
static const int POPUP_ID_EDITOR_SETTINGS
protected ButtonWidget m_WgtBtnSceneSave
protected ButtonWidget m_PresetAddItemtButton
static const int POPUP_ID_CONFIGS
protected EditBoxWidget m_ConfigsButton
protected EditBoxWidget m_PrWgtPoxZ
static const int POPUP_ID_SCENE_NEW
protected Widget m_NotifyWgtPanel
static const int POPUP_ID_PRESET_RENAME
protected EditBoxWidget m_PrWgtDmg
protected EditBoxWidget m_DamageEditBox
protected void UpdateListClasses()
protected TextWidget m_PrWgtClassName
static const int POPUP_ID_NOTIFY
private void PopupHideAll()
static const int POPUP_ID_INIT_SCRIPT
protected EditBoxWidget m_PrWgtPoxX
protected Widget m_WgtPnlWrapper
protected Widget m_WgtPopupsBg
protected ButtonWidget m_ClWgtButtonAddAtt
protected ButtonWidget m_SpawnAsAttachmentButton
static const int POPUP_ID_SCENE_MANAGER
protected ButtonWidget m_SpawnOnGroundButton
static const int POPUP_ID_POSITION_MANAGER
protected ButtonWidget m_PresetNewButton
protected ButtonWidget m_WgtBtnEditorSettings
protected EditBoxWidget m_PrWgtPoxY
protected ButtonWidget m_SlWgtSelect
protected EditBoxWidget m_SpawnDistanceEditBox
static const int POPUP_ID_SCENE_SETTINGS
protected EditBoxWidget m_ClWgtEbxFilter
private void UpdateListObjects()
protected ButtonWidget m_SpawnInInventoryButton
protected ButtonWidget m_PresetRenameButton
protected ButtonWidget m_WgtBtnSceneManager
protected ButtonWidget m_PresetSetDefaultButton
protected PluginConfigDebugProfileFixed m_ConfigDebugProfileFixed
protected ButtonWidget m_CopyToClipboardButton
static const int POPUP_ID_SCENE_DELETE
protected EditBoxWidget m_SlWgtEbxFilter
protected ButtonWidget m_UpButton
protected ButtonWidget m_WgtBtnPositionManager
protected ButtonWidget m_PresetDeleteButton
protected ButtonWidget m_PresetRemoveItemButton
protected EditBoxWidget m_QuantityEditBox
protected TextListboxWidget m_SlWgtLbxObjectsList
protected TextWidget m_SlWgtLoadedScene
protected EditBoxWidget m_PrWgtDir
protected ButtonWidget m_WgtBtnSceneSettings
protected Widget m_WgtPopupsMain
protected ButtonWidget m_SlWgtFocus

References WorkspaceWidget::CreateWidgets(), GetGame(), GetPlugin(), CGame::GetWorkspace(), PopupHideAll(), RenderPresets(), UpdateListClasses(), and UpdateListObjects().

◆ Init() [32/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 103 of file scriptconsole.c.

105 {
106
108
109 int i;
110 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/script_console/script_console.layout");
111
112 m_ButtonsWindowWidget = layoutRoot.FindAnyWidget("TabButtons");
113 m_ButtonsWindowWidget.Show(true);
114
115 m_DebugMapWidget = MapWidget.Cast( layoutRoot.FindAnyWidget("MapWidget") );
116
117 m_Tabs[TAB_ITEMS] = layoutRoot.FindAnyWidget("ItemsPanel");
118 m_Tabs[TAB_CONFIGS] = layoutRoot.FindAnyWidget("ConfigsPanel");
119 m_Tabs[TAB_ENSCRIPT] = layoutRoot.FindAnyWidget("EnScriptPanel");
120 m_Tabs[TAB_ENSCRIPT_SERVER] = layoutRoot.FindAnyWidget("EnScriptPanel");
121 m_Tabs[TABS_GENERAL] = layoutRoot.FindAnyWidget("GeneralPanel");
122 m_Tabs[TABS_OUTPUT] = layoutRoot.FindAnyWidget("OutputPanel");
123 m_Tabs[TABS_VICINITY] = layoutRoot.FindAnyWidget("VicinityPanel");
124 m_Tabs[TABS_SOUNDS] = layoutRoot.FindAnyWidget("SoundsPanel");
125
126
127 m_Tab_buttons[TAB_ITEMS] = ButtonWidget.Cast( layoutRoot.FindAnyWidget("ItemsButtonWidget") );
128 m_Tab_buttons[TAB_CONFIGS] = ButtonWidget.Cast( layoutRoot.FindAnyWidget("ConfigsButtonWidget") );
129 m_Tab_buttons[TAB_ENSCRIPT] = ButtonWidget.Cast( layoutRoot.FindAnyWidget("EnScriptButtonWidget") );
130 m_Tab_buttons[TAB_ENSCRIPT_SERVER] = ButtonWidget.Cast( layoutRoot.FindAnyWidget("EnScriptButtonWidgetServer") );
131 m_Tab_buttons[TABS_GENERAL] = ButtonWidget.Cast( layoutRoot.FindAnyWidget("GeneralButtonWidget") );
132 m_Tab_buttons[TABS_OUTPUT] = ButtonWidget.Cast( layoutRoot.FindAnyWidget("OutputButtonWidget") );
133 m_Tab_buttons[TABS_VICINITY] = ButtonWidget.Cast( layoutRoot.FindAnyWidget("VicinityWidget") );
134 m_Tab_buttons[TABS_SOUNDS] = ButtonWidget.Cast( layoutRoot.FindAnyWidget("SoundsWidget") );
135
136 m_ClientLogListbox = TextListboxWidget.Cast( layoutRoot.FindAnyWidget("TextListbox") );
137 m_ClientLogClearButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget("ButtonClear") );
138 m_ClientLogScrollCheckbox = CheckBoxWidget.Cast( layoutRoot.FindAnyWidget("CheckBoxAutoScroll") );
139
140 m_DiagToggleTextListbox = TextListboxWidget.Cast( layoutRoot.FindAnyWidget("DiagToggle") );
141 m_DiagToggleButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget("DiagToggleButton") );
142
143 m_DiagDrawmodeTextListbox = TextListboxWidget.Cast( layoutRoot.FindAnyWidget("DiagDrawmode") );
144 m_DiagDrawButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget("DiagDrawButton") );
145 m_DrawInWorld = ButtonWidget.Cast( layoutRoot.FindAnyWidget("ButtonDrawItem") );
146 m_DrawInWorldClear = ButtonWidget.Cast( layoutRoot.FindAnyWidget("ButtonDrawItemClear") );
147
148 m_PositionsListbox = TextListboxWidget.Cast( layoutRoot.FindAnyWidget("PositionsList") );
149 m_TeleportButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget("ButtonTeleport") );
150 m_ButtonCopyPos = ButtonWidget.Cast( layoutRoot.FindAnyWidget("Button_CopyPos") );
151 m_CopySoundset = ButtonWidget.Cast( layoutRoot.FindAnyWidget("SoundsetCopy") );
152 m_PlaySoundset = ButtonWidget.Cast( layoutRoot.FindAnyWidget("PlaySoundset") );
153 m_PlaySoundsetLooped = ButtonWidget.Cast( layoutRoot.FindAnyWidget("PlaySoundsetLooped") );
154 m_StopSoundset = ButtonWidget.Cast( layoutRoot.FindAnyWidget("StopSoundset") );
155 m_TeleportX = EditBoxWidget.Cast( layoutRoot.FindAnyWidget("TeleportX") );
156 m_TeleportY = EditBoxWidget.Cast( layoutRoot.FindAnyWidget("TeleportY") );
157 m_TeleportXYZ = EditBoxWidget.Cast( layoutRoot.FindAnyWidget("TeleportXYZ") );
158 m_PlayerCurPos = TextWidget.Cast( layoutRoot.FindAnyWidget("PlayerPosLabel") );
159 m_PlayerMouseDiff = TextWidget.Cast( layoutRoot.FindAnyWidget("PlayerMouseDiff") );
160 m_MouseCurPos = TextWidget.Cast( layoutRoot.FindAnyWidget("MousePosLabel") );
161 m_LogsEnabled = CheckBoxWidget.Cast( layoutRoot.FindAnyWidget("cbx_LogsEnabled") );
162 m_HudDCharStats = CheckBoxWidget.Cast( layoutRoot.FindAnyWidget("cbx_CharacterStats") );
163 m_HudDCharLevels = CheckBoxWidget.Cast( layoutRoot.FindAnyWidget("cbx_CharacterLevels") );
164 m_HudDCharStomach = CheckBoxWidget.Cast( layoutRoot.FindAnyWidget("cbx_CharacterStomach") );
165 m_HudDCharModifiers = CheckBoxWidget.Cast( layoutRoot.FindAnyWidget("cbx_CharacterModifiers") );
166 m_HudDCharAgents = CheckBoxWidget.Cast( layoutRoot.FindAnyWidget("cbx_CharacterAgents") );
167 m_HudDCharDebug = CheckBoxWidget.Cast( layoutRoot.FindAnyWidget("cbx_CharacterDebug") );
168 m_HudDFreeCamCross = CheckBoxWidget.Cast( layoutRoot.FindAnyWidget("cbx_FreeCamCross") );
169 m_HudDTemperature = CheckBoxWidget.Cast( layoutRoot.FindAnyWidget("cbx_Temp") );
170 m_HudDVersion = CheckBoxWidget.Cast( layoutRoot.FindAnyWidget("cbx_Version") );
171 m_ItemPreviewCheckbox = CheckBoxWidget.Cast( layoutRoot.FindAnyWidget("ItemPreviewCheckbox") );
172
173 m_CategoryMergeType = CheckBoxWidget.Cast( layoutRoot.FindAnyWidget("CategoryMergeType") );
174
175 m_TimeSlider = SliderWidget.Cast( layoutRoot.FindAnyWidget("TimeSlider") );
176 m_DateYear = EditBoxWidget.Cast(layoutRoot.FindAnyWidget("DateYear") );
177 m_DateMonth = EditBoxWidget.Cast(layoutRoot.FindAnyWidget("DateMonth") );
178 m_DateDay = EditBoxWidget.Cast(layoutRoot.FindAnyWidget("DateDay") );
179 m_DateHour = EditBoxWidget.Cast(layoutRoot.FindAnyWidget("DateHour") );
180 m_DateMinute = EditBoxWidget.Cast(layoutRoot.FindAnyWidget("DateMinute") );
181
182 m_ShowProtected = CheckBoxWidget.Cast( layoutRoot.FindAnyWidget("ShowProtectedCheckbox") );
183 m_ShowOthers = CheckBoxWidget.Cast( layoutRoot.FindAnyWidget("ShowOthersCheckbox") );
184
185 m_ClearInventory = CheckBoxWidget.Cast( layoutRoot.FindAnyWidget("ForceClearCheckbox") );
186
187
188
189 m_DrawDistanceWidget = EditBoxWidget.Cast( layoutRoot.FindAnyWidget("DrawItemDistance") );
190
191 m_EnfScriptEdit = MultilineEditBoxWidget.Cast( layoutRoot.FindAnyWidget("MultilineEditBoxWidget0") );
192 m_EnfScriptRun = ButtonWidget.Cast( layoutRoot.FindAnyWidget("RunButton") );
193
194 m_ObjectFilter = EditBoxWidget.Cast( layoutRoot.FindAnyWidget("ObjectFilter") );
195 m_SpawnDistanceEditBox = EditBoxWidget.Cast( layoutRoot.FindAnyWidget("SpawnDistance") );
196 m_SelectedObjectText = TextWidget.Cast( layoutRoot.FindAnyWidget("SelectedObject") );
197 m_ObjectsTextListbox = TextListboxWidget.Cast( layoutRoot.FindAnyWidget("ObjectsList") );
198 m_PresetsTextListbox = TextListboxWidget.Cast( layoutRoot.FindAnyWidget("PresetList") );
199 m_PresetItemsTextListbox = TextListboxWidget.Cast( layoutRoot.FindAnyWidget("PresetItemsList") );
200 m_PresetNewButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget("NewPresetButton") );
201 m_PresetDeleteButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget("DeletePresetButton") );
202 m_PresetRenameButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget("RenamePresetButton") );
203 m_PresetSetDefaultButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget("SetDefaultPresetButton") );
204 m_PresetAddItemtButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget("AddToPresetButton") );
205 m_ItemNameCopy = ButtonWidget.Cast( layoutRoot.FindAnyWidget("ItemNameCopy") );
206 m_PresetRemoveItemButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget("RemoveFromPresetButton") );
207 m_ItemMoveUpButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget("ItemMoveUpButton") );
208 m_ItemMoveDownButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget("ItemMoveDownButton") );
209 m_ItemPreviewWidget = ItemPreviewWidget.Cast( layoutRoot.FindAnyWidget("ItemPreviewWidget") );
210
211 m_SoundFilter = EditBoxWidget.Cast( layoutRoot.FindAnyWidget("SoundsFilter") );
212 m_SoundsTextListbox = TextListboxWidget.Cast( layoutRoot.FindAnyWidget("SoundsList") );
213
214
215 m_QuantityEditBox = EditBoxWidget.Cast( layoutRoot.FindAnyWidget("QuantityValue") );
216 m_DamageEditBox = EditBoxWidget.Cast( layoutRoot.FindAnyWidget("DamageValue") );
217 m_ItemDamageLabel = TextWidget.Cast( layoutRoot.FindAnyWidget("DamageLabel") );
218 m_ItemQuantityLabel = TextWidget.Cast( layoutRoot.FindAnyWidget("QuantityLabel") );
219
220 m_SpawnInInvButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget("ButtonSpawnInInv") );
221 m_SpawnGroundButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget("ButtonSpawnInGround") );
222 m_SpawnAsAttachment = ButtonWidget.Cast( layoutRoot.FindAnyWidget("SpawnAsAttachment") );
223 m_SpawnSpecial = ButtonWidget.Cast( layoutRoot.FindAnyWidget("SpawnSpecial") );
224 m_SpawnBatchButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget("ButtonSpawnBatch") );
225
226
227 m_RectSpawnColumn = EditBoxWidget.Cast(layoutRoot.FindAnyWidget("RectangleColumnValue") );
228 m_RectSpawnRow = EditBoxWidget.Cast(layoutRoot.FindAnyWidget("RectangleRowValue") );
229 m_BatchSpawnQuantity = EditBoxWidget.Cast(layoutRoot.FindAnyWidget("BatchCount") );
230
231 m_RectSpawnColumnStep = EditBoxWidget.Cast(layoutRoot.FindAnyWidget("RectangleStepXValue") );
232 m_RectSpawnRowStep = EditBoxWidget.Cast(layoutRoot.FindAnyWidget("RectangleStepYValue") );
233
234
235 m_HelpTextListboxWidget = TextListboxWidget.Cast( layoutRoot.FindAnyWidget("HelpTextListboxWidget") );
236
237 m_VicinityListbox = TextListboxWidget.Cast( layoutRoot.FindAnyWidget("VicinityListbox") );
238
239 PluginDeveloper module_dev = PluginDeveloper.Cast( GetPlugin(PluginDeveloper) );
240
241 m_WgtClassesConfig = layoutRoot.FindAnyWidget("ClassesPanel");
242
243 // config hierarchy
244 m_ObjectConfigFilter = EditBoxWidget.Cast( layoutRoot.FindAnyWidget("ObjectConfigFilter") );
245 m_ConfigHierarchyTextListbox = TextListboxWidget.Cast( layoutRoot.FindAnyWidget("ConfigHierarchy") );
246 m_ConfigVariablesTextListbox = TextListboxWidget.Cast( layoutRoot.FindAnyWidget("ConfigVariables") );
247 m_SelectedRowCopy = ButtonWidget.Cast( layoutRoot.FindAnyWidget("SelectedRowCopy") );
248
249 m_CloseConsoleButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget("CloseConsoleButtonWidget") );
250 m_WatchItem = ButtonWidget.Cast( layoutRoot.FindAnyWidget("WatchItemButton") );
251 m_PlaySoundsetButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget("PlaySoundsetButton") );
252
253 m_MissionGameplay = MissionGameplay.Cast( GetGame().GetMission() );
254 m_Developer = PluginDeveloper.Cast( GetPlugin(PluginDeveloper) );
256 m_ConfigDebugProfileFixed = PluginConfigDebugProfileFixed.Cast( GetPlugin(PluginConfigDebugProfileFixed) );
257 m_ModuleConfigViewer = PluginConfigViewer.Cast( GetPlugin( PluginConfigViewer ) );
258
259 // Update checkbox Character Values
260 m_HudDCharStats.SetChecked(m_ConfigDebugProfile.GetCharacterStatsVisible());
261 m_HudDCharLevels.SetChecked(m_ConfigDebugProfile.GetCharacterLevelsVisible());
262 m_HudDCharStomach.SetChecked(m_ConfigDebugProfile.GetCharacterStomachVisible());
263 m_HudDCharModifiers.SetChecked(m_ConfigDebugProfile.GetCharacterModifiersVisible());
264 m_HudDCharAgents.SetChecked(m_ConfigDebugProfile.GetCharacterAgentsVisible());
265 m_HudDCharDebug.SetChecked(m_ConfigDebugProfile.GetCharacterDebugVisible());
266 m_HudDFreeCamCross.SetChecked(m_ConfigDebugProfile.GetFreeCameraCrosshairVisible());
267 m_HudDVersion.SetChecked(m_ConfigDebugProfile.GetVersionVisible());
268 m_HudDTemperature.SetChecked(m_ConfigDebugProfile.GetTempVisible());
269 m_CategoryMergeType.SetChecked(m_ConfigDebugProfile.GetMergeType());
270
271 m_LogsEnabled.SetChecked(m_ConfigDebugProfile.GetLogsEnabled());
272
273 TStringArray diag_names = new TStringArray;
274 GetGame().GetDiagModeNames( diag_names );
275 for ( i = 0; i < diag_names.Count(); i++)
276 {
277 m_DiagToggleTextListbox.AddItem(diag_names.Get(i), NULL, 0);
278 }
279
280 GetGame().GetDiagDrawModeNames( diag_names );
281 for ( i = 0; i < diag_names.Count(); i++)
282 {
283 m_DiagDrawmodeTextListbox.AddItem(diag_names.Get(i), NULL, 0);
284 }
285 string test1 = m_ConfigDebugProfile.GetItemSearch();
286 m_ObjectFilter.SetText( m_ConfigDebugProfile.GetItemSearch() );
287 m_SpawnDistanceEditBox.SetText( m_ConfigDebugProfile.GetSpawnDistance().ToString() );
288
290
291 m_Rows = 0;
292 m_ServerRows = 0;
295
298
299 // load data from profile
300 m_selected_tab = m_ConfigDebugProfile.GetTabSelected();
302
305
306 m_PresetDeleteButton.Show( false );
307 m_PresetRenameButton.Show( false );
308
310 //EnscriptHistoryBack();
311
312
313 TStringArray positions_array = new TStringArray;
314 m_ConfigDebugProfileFixed.GetAllPositionsNames( positions_array );
315 for ( i = 0; i < positions_array.Count(); i++ )
316 {
317 m_PositionsListbox.AddItem( positions_array.Get(i), new PresetParams ( positions_array.Get(i), true, false), 0);
318 }
319
321
323
327
328 m_LateInit.Run(0.05, this, "LateInit", null, false);
329
330 int year,month,day,hour,minute;
331 GetGame().GetWorld().GetDate(year,month, day, hour, minute);
332 RefreshDateWidgets(year,month, day, hour, minute);
333 return layoutRoot;
334 }
proto native World GetWorld()
proto native void GetDiagModeNames(out TStringArray diag_names)
Get list of all debug modes.
proto native void GetDiagDrawModeNames(out TStringArray diag_names)
Get list of all debug draw modes.
static void GetBaseConfigClasses(out TStringArray base_classes)
Returns some of base config classes strings like CfgVehicles, CfgWeapons, etc. for searching purposes...
Definition: debug.c:384
EditBoxWidget m_DateHour
CheckBoxWidget m_LogsEnabled
CheckBoxWidget m_HudDCharAgents
ButtonWidget m_SpawnGroundButton
CheckBoxWidget m_HudDCharLevels
TextListboxWidget m_DiagToggleTextListbox
ButtonWidget m_PlaySoundsetButton
static const int TAB_ENSCRIPT
EditBoxWidget m_RectSpawnRowStep
ButtonWidget m_ItemNameCopy
EditBoxWidget m_TeleportY
CheckBoxWidget m_HudDVersion
TextWidget m_SelectedObjectText
static const int TABS_VICINITY
ButtonWidget m_WatchItem
ButtonWidget m_DrawInWorldClear
void UpdateHudDebugSetting()
Widget m_ButtonsWindowWidget
EditBoxWidget m_TeleportX
TextWidget m_ItemQuantityLabel
TextListboxWidget m_VicinityListbox
EditBoxWidget m_TeleportXYZ
EditBoxWidget m_DateMinute
CheckBoxWidget m_HudDFreeCamCross
PluginLocalEnscriptHistoryServer m_ModuleLocalEnscriptHistoryServer
MissionGameplay m_MissionGameplay
ButtonWidget m_SpawnSpecial
EditBoxWidget m_DrawDistanceWidget
Widget m_WgtClassesConfig
Definition: scriptconsole.c:26
static const int TABS_SOUNDS
CheckBoxWidget m_HudDCharDebug
ButtonWidget m_DrawInWorld
TextWidget m_ItemDamageLabel
SliderWidget m_TimeSlider
Definition: scriptconsole.c:33
EditBoxWidget m_RectSpawnColumn
void ShowItemTransferButtons()
ButtonWidget m_SelectedRowCopy
ButtonWidget m_PlaySoundset
static const int TAB_CONFIGS
static const int TAB_ENSCRIPT_SERVER
TextListboxWidget m_DiagDrawmodeTextListbox
EditBoxWidget m_RectSpawnRow
EditBoxWidget m_DateYear
TextListboxWidget m_HelpTextListboxWidget
ButtonWidget m_DiagDrawButton
ButtonWidget m_ClientLogClearButton
void RefreshDateWidgets(int year, int month, int day, int hour, int minute)
CheckBoxWidget m_HudDCharStats
protected ref array< ref KeybindingsGroup > m_Tabs
ButtonWidget m_DiagToggleButton
ref TStringArray m_BaseConfigClasses
Definition: scriptconsole.c:28
void HideItemButtons()
ItemPreviewWidget m_ItemPreviewWidget
EditBoxWidget m_DateMonth
static const int TAB_ITEMS
static const int TABS_GENERAL
void ChangeFilterItems()
ButtonWidget m_PlaySoundsetLooped
ButtonWidget m_TeleportButton
EditBoxWidget m_BatchSpawnQuantity
TextWidget m_MouseCurPos
ref Timer m_LateInit
Definition: scriptconsole.c:34
void SelectTab(int tab_id)
CheckBoxWidget m_HudDTemperature
CheckBoxWidget m_ShowProtected
TextWidget m_PlayerCurPos
ButtonWidget m_Tab_buttons[TABS_COUNT]
CheckBoxWidget m_ItemPreviewCheckbox
ButtonWidget m_CopySoundset
EditBoxWidget m_RectSpawnColumnStep
ButtonWidget m_StopSoundset
CheckBoxWidget m_CategoryMergeType
TextWidget m_PlayerMouseDiff
ButtonWidget m_SpawnBatchButton
CheckBoxWidget m_HudDCharModifiers
ButtonWidget m_ButtonCopyPos
EditBoxWidget m_DateDay
CheckBoxWidget m_ClearInventory
ButtonWidget m_SpawnAsAttachment
CheckBoxWidget m_HudDCharStomach
CheckBoxWidget m_ShowOthers
static const int TABS_OUTPUT
PluginLocalEnscriptHistory m_ModuleLocalEnscriptHistory
ButtonWidget m_SpawnInInvButton
const string DEFAULT_POS_XYZ
Definition: scriptconsole.c:9
proto void GetDate(out int year, out int month, out int day, out int hour, out int minute)
Get actual ingame world time.
proto native vector GetWorldPosition()

References ChangeFilterItems(), ClearHierarchy(), WorkspaceWidget::CreateWidgets(), Debug::GetBaseConfigClasses(), World::GetDate(), CGame::GetDiagDrawModeNames(), CGame::GetDiagModeNames(), GetGame(), GetPlayer(), GetPlugin(), CGame::GetWorkspace(), CGame::GetWorld(), GetWorldPosition(), HideItemButtons(), m_ItemPreviewWidget, RefreshDateWidgets(), RenderPresets(), SelectTab(), ShowItemTransferButtons(), TAB_CONFIGS, TAB_ENSCRIPT, TAB_ENSCRIPT_SERVER, TAB_ITEMS, TABS_GENERAL, TABS_OUTPUT, TABS_SOUNDS, TABS_VICINITY, and UpdateHudDebugSetting().

◆ Init() [33/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 12 of file scriptconsolenewpresetdialog.c.

13 {
14 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/script_console/script_console_dialog_preset.layout");
15 m_Editbox = EditBoxWidget.Cast( layoutRoot.FindAnyWidget("PrimaryEditBox") );
16 m_Label = TextWidget.Cast( layoutRoot.FindAnyWidget("WindowLabel") );
17 m_Label.SetText("NEW PRESET");
18
19 return layoutRoot;
20 }

References WorkspaceWidget::CreateWidgets(), GetGame(), and CGame::GetWorkspace().

◆ Init() [34/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 12 of file scriptconsolerenamepresetdialog.c.

13 {
14 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/script_console/script_console_dialog_preset.layout");
15 m_Editbox = EditBoxWidget.Cast( layoutRoot.FindAnyWidget("PrimaryEditBox") );
16 m_Label = TextWidget.Cast( layoutRoot.FindAnyWidget("WindowLabel") );
17 m_Message = TextWidget.Cast( layoutRoot.FindAnyWidget("MessageText") );
18
19 MissionBase mission = MissionBase.Cast( GetGame().GetMission() );
20
22 if ( ui_menu != NULL )
23 {
24 ScriptConsole scripted_console = ScriptConsole.Cast( ui_menu );
25
26 m_Editbox.SetText( scripted_console.GetCurrentPresetName() );
27 m_Label.SetText("RENAME PRESET");
28 m_Message.SetText( scripted_console.GetCurrentPresetName() );
29 }
30
31 return layoutRoot;
32 }
UIScriptedMenu FindMenu(int id)
Returns menu with specific ID if it is open (see MenuID)
Definition: uimanager.c:161
const int MENU_SCRIPTCONSOLE
Definition: constants.c:162

References WorkspaceWidget::CreateWidgets(), UIManager::FindMenu(), GetGame(), CGame::GetUIManager(), CGame::GetWorkspace(), MENU_SCRIPTCONSOLE, and mission.

◆ Init() [35/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 11 of file startupmenu.c.

12 {
13 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/startup.layout");
14
15 m_label = TextWidget.Cast( layoutRoot.FindAnyWidget("TextWidget") );
16
17 return layoutRoot;
18 }

References WorkspaceWidget::CreateWidgets(), GetGame(), and CGame::GetWorkspace().

◆ Init() [36/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 16 of file titlescreenmenu.c.

17 {
18 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/xbox/day_z_title_screen.layout");
19
20 MissionMainMenu mission = MissionMainMenu.Cast( g_Game.GetMission() );
21
22 m_TextPress = RichTextWidget.Cast( layoutRoot.FindAnyWidget("InputPromptText") );
23 if (m_TextPress)
24 {
25 string gamertag;
26 string text = Widget.TranslateString( "#console_start_game" );
27 GetGame().GetPlayerName(gamertag);
28 #ifdef PLATFORM_XBOX
29 BiosUserManager user_manager = GetGame().GetUserManager();
30 if( user_manager && user_manager.GetSelectedUser() )
31 m_TextPress.SetText( string.Format( text, "<image set=\"xbox_buttons\" name=\"A\" />" ) );
32 else
33 m_TextPress.SetText( string.Format( text, "<image set=\"xbox_buttons\" name=\"A\" />" ) );
34 #endif
35
36 #ifdef PLATFORM_PS4
37 string confirm = "cross";
38 if( GetGame().GetInput().GetEnterButton() == GamepadButton.A )
39 {
40 confirm = "cross";
41 }
42 else
43 {
44 confirm = "circle";
45 }
46 m_TextPress.SetText( string.Format( text, "<image set=\"playstation_buttons\" name=\"" + confirm + "\" />" ) );
47 #endif
48 }
49 return layoutRoot;
50 }
proto native BiosUser GetSelectedUser()
Returns the currently selected user.
proto void GetPlayerName(out string name)
Gets current player name.
RichTextWidget m_TextPress

References WorkspaceWidget::CreateWidgets(), g_Game, GetGame(), GetInput(), CGame::GetPlayerName(), BiosUserManager::GetSelectedUser(), CGame::GetUserManager(), CGame::GetWorkspace(), and mission.

◆ InitInputSortingMap()

protected void UIScriptedMenu::InitInputSortingMap ( )
inlineprivate

Definition at line 446 of file keybindingsmenu.c.

447 {
449 }
static bool InitInputMetadata()
Definition: inpututils.c:239

References InputUtils::InitInputMetadata().

Referenced by Init().

◆ InitMapItem()

override void UIScriptedMenu::InitMapItem ( EntityAI  item)
inlineprivate

Definition at line 147 of file mapmenu.c.

148 {
149 super.InitMapItem(item);
150
151 m_Map = ItemMap.Cast(item);
152 //m_Map.SyncMapMarkers();
153 //m_MarkerCount = m_Map.GetMarkerArray().Count();
154 }

Referenced by ActionUnfoldMapCB::PerformMapChange().

◆ InitNoteRead()

override void UIScriptedMenu::InitNoteRead ( string  text = "")
inlineprivate

Definition at line 39 of file notemenu.c.

40 {
41 m_IsWriting = false;
42
43 if (m_edit)
44 {
45 m_edit.Show(false);
46 }
47
48 if (m_html)
49 {
50 //TODO add text formating here. Just text string for now
51 if (text)
52 {
53 m_html.Show(true);
54 m_html.SetText(text);
55 m_SymbolCount = text.Length(); //string.LengthUtf8() ?
56 //m_html.SetText("<html><body><p>" + text + "</p></body></html>");
57 }
58 }
59 m_confirm_button.Show(false);
60 }
protected bool m_IsWriting
Definition: notemenu.c:8
protected int m_SymbolCount
Definition: notemenu.c:10

◆ InitNoteWrite()

override void UIScriptedMenu::InitNoteWrite ( EntityAI  paper,
EntityAI  pen,
string  text = "" 
)
inlineprivate

Definition at line 62 of file notemenu.c.

63 {
64 m_IsWriting = true;
65
66 if (m_edit)
67 {
68 m_Paper = ItemBase.Cast(paper);
69 m_Pen = pen;
70 m_PenColor = m_Pen.ConfigGetString("writingColor");
71 if (m_PenColor == "")
72 {
73 m_PenColor = "#000000";
74 }
75 //m_Handwriting = handwriting;
76
77 m_edit.Show(true);
78 m_edit.SetText(text);
79 }
80
81 if (m_html)
82 {
83 m_html.Show(false);
84 }
85 m_confirm_button.Show(true);
86 }
protected EntityAI m_Pen
Definition: notemenu.c:7
protected string m_PenColor
Definition: notemenu.c:11
protected ItemBase m_Paper
Definition: notemenu.c:6

◆ InitPresets()

void UIScriptedMenu::InitPresets ( int  index,
Widget  parent,
Input  input 
)
inlineprivate

Definition at line 451 of file keybindingsmenu.c.

452 {
453 Widget kb_root = parent.FindAnyWidget( "keyboard_dropown" );
454 if (kb_root)
455 {
456 kb_root.Show(false);
457 }
458
459 array<string> opt1 = new array<string>;
460 string profile_text;
461
462 for (int i = 0; i < input.GetProfilesCount(); i++)
463 {
464 input.GetProfileName( i, profile_text );
465 opt1.Insert( profile_text );
466 }
467
468 int current_idx = input.GetCurrentProfile();
469 m_OriginalPresetIndex = current_idx;
470 m_PresetSelector = new OptionSelectorMultistate( layoutRoot.FindAnyWidget( "profile_setting_option" ), current_idx, null, false, opt1 );
471 m_PresetSelector.m_AttemptOptionChange.Insert( OnAttemptSelectPreset );
472 m_PresetSelector.m_OptionChanged.Insert( OnSelectKBPreset );
473 }
protected ref OptionSelectorMultistate m_PresetSelector
protected int m_OriginalPresetIndex
void OnSelectKBPreset(int index)
void OnAttemptSelectPreset(int index)

References Input::GetCurrentProfile(), Input::GetProfileName(), and Input::GetProfilesCount().

Referenced by Init().

◆ InspectMenuNew()

void UIScriptedMenu::InspectMenuNew ( )
inlineprivate

Definition at line 12 of file inspectmenunew.c.

13 {
14
15 }

◆ InviteMenu()

void UIScriptedMenu::InviteMenu ( )
inlineprivate

Definition at line 7 of file invitemenu.c.

8 {
9 m_iTime = 15;
10 }

◆ IsAnyTabChanged()

bool UIScriptedMenu::IsAnyTabChanged ( )
inlineprivate

Definition at line 249 of file optionsmenu.c.

250 {
251 bool changed = ( m_Options.IsChanged() || m_GameTab.IsChanged() || m_SoundsTab.IsChanged() || m_ControlsTab.IsChanged() );
252 #ifndef PLATFORM_XBOX
253 changed |= m_VideoTab.IsChanged();
254 #endif
255
256 return changed;
257 }

Referenced by Back(), OnAttemptTabSwitch(), and OnChanged().

◆ IsCurrentPresetFixed() [1/2]

bool UIScriptedMenu::IsCurrentPresetFixed ( )
inlineprivate

Definition at line 234 of file sceneeditormenu.c.

235 {
236 int index = GetCurrentPresetIndex();
237 if ( index > -1 && index < m_PresetsTextListbox.GetNumItems() )
238 {
239 PresetParams item_params_array;
240 m_PresetsTextListbox.GetItemData( index, 0, item_params_array );
241 return item_params_array.param2;
242 }
243 return -1;
244 }

References GetCurrentPresetIndex().

Referenced by RenderPresetItems(), SetPreset(), ShowItemButtons(), ShowItemTransferButtons(), ShowPresetButtons(), and SpawnPreset().

◆ IsCurrentPresetFixed() [2/2]

bool UIScriptedMenu::IsCurrentPresetFixed ( )
inlineprivate

Definition at line 2182 of file scriptconsole.c.

2183 {
2184 int index = GetCurrentPresetIndex();
2185 if ( index > -1 && index < m_PresetsTextListbox.GetNumItems() )
2186 {
2187 PresetParams item_params_array;
2188 m_PresetsTextListbox.GetItemData( index, 0, item_params_array );
2189 return item_params_array.param2;
2190 }
2191 return false;
2192 }

References GetCurrentPresetIndex().

◆ IsFavorited()

bool UIScriptedMenu::IsFavorited ( string  server_id)
inlineprivate

Definition at line 220 of file serverbrowsermenunew.c.

221 {
222 int index = -1;
223 if ( m_Favorites )
224 {
225 index = m_Favorites.Find( server_id );
226 }
227 return ( index >= 0 );
228 }

Referenced by AddFavorite().

◆ IsFocusable() [1/9]

bool UIScriptedMenu::IsFocusable ( Widget  w)
inlineprivate

Definition at line 881 of file cameratoolsmenu.c.

882 {
883 if ( w )
884 {
885 return ( w == m_SaveKeyframe || w == m_DeleteKeyframe || w == m_ViewKeyframe || w == m_SaveEvent || w == m_DeleteEvent || w == m_ViewEvent || w == m_AddKeyframe || w == m_AddEvent || w == m_Play || w == m_Stop || w == m_Save || w == m_Load || w == m_InterpTypeCombo );
886 }
887 return false;
888 }

Referenced by OnFocus(), OnFocusLost(), OnMouseEnter(), and OnMouseLeave().

◆ IsFocusable() [2/9]

bool UIScriptedMenu::IsFocusable ( Widget  w)
inlineprivate

Definition at line 592 of file ingamemenuxbox.c.

593 {
594 if( w )
595 {
596 if( w == m_ContinueButton || w == m_ExitButton || w == m_RestartButton || w == m_OptionsButton || w == m_ControlsButton || w == m_OnlineButton || w == m_TutorialsButton );
597 return true;
598 }
599 return false;
600 }

◆ IsFocusable() [3/9]

bool UIScriptedMenu::IsFocusable ( Widget  w)
inlineprivate

Definition at line 454 of file charactercreationmenu.c.

455 {
456 if( w )
457 {
458 return ( w == m_Apply || w == m_Save || w == m_RandomizeCharacter || w == m_BackButton );
459 }
460 return false;
461 }

◆ IsFocusable() [4/9]

bool UIScriptedMenu::IsFocusable ( Widget  w)
inlineprivate

Definition at line 392 of file keybindingsmenu.c.

393 {
394 if( w )
395 {
396 return ( w == m_Apply || w == m_Back || w == m_Undo || w == m_Defaults );
397 }
398 return false;
399 }

References m_Back.

◆ IsFocusable() [5/9]

bool UIScriptedMenu::IsFocusable ( Widget  w)
inlineprivate

Definition at line 293 of file mainmenu.c.

294 {
295 if( w )
296 {
297 if( w == m_Play || w == m_ChooseServer || w == m_CustomizeCharacter || w == m_TutorialButton || w == m_MessageButton || w == m_SettingsButton );
298 {
299 return true;
300 }
301
302 if( w == m_Exit || w == m_PlayVideo );
303 {
304 return true;
305 }
306
307 if( w == m_NewsMain || w == m_NewsSec1 || w == m_NewsSec2 || w == m_PrevCharacter || w == m_NextCharacter );
308 {
309 return true;
310 }
311 }
312 return false;
313 }
protected Widget m_NewsMain
Definition: mainmenu.c:23
protected Widget m_NewsSec1
Definition: mainmenu.c:24
protected Widget m_NewsSec2
Definition: mainmenu.c:25

◆ IsFocusable() [6/9]

bool UIScriptedMenu::IsFocusable ( Widget  w)
inlineprivate

Definition at line 464 of file tutorialsmenu.c.

465 {
466 return ( w && w == m_Back );
467 }

References m_Back.

◆ IsFocusable() [7/9]

bool UIScriptedMenu::IsFocusable ( Widget  w)
inlineprivate

Definition at line 571 of file optionsmenu.c.

572 {
573 if ( w )
574 {
575 return ( w == m_Apply || w == m_Back || w == m_Reset || w == m_Defaults );
576 }
577 return false;
578 }

References m_Back.

◆ IsFocusable() [8/9]

bool UIScriptedMenu::IsFocusable ( Widget  w)
inlineprivate

Definition at line 500 of file serverbrowsermenunew.c.

501 {
502 if ( w )
503 {
504 return ( w == m_Play || w == m_CustomizeCharacter || w == m_Back );
505 }
506 return false;
507 }

References m_Back.

◆ IsFocusable() [9/9]

bool UIScriptedMenu::IsFocusable ( Widget  w)
inlineprivate

Definition at line 142 of file respawndialogue.c.

143 {
144 if( w )
145 {
146 if( w.GetUserID() == IDC_CANCEL || w.GetUserID() == ID_RESPAWN_CUSTOM || w.GetUserID() == ID_RESPAWN_RANDOM );
147 return true;
148 }
149 return false;
150 }
const int ID_RESPAWN_CUSTOM
const int ID_RESPAWN_RANDOM
const int IDC_CANCEL
Definition: constants.c:115

References IDC_CANCEL.

◆ IsLocalPlayer()

bool UIScriptedMenu::IsLocalPlayer ( string  uid)
inlineprivate

Definition at line 387 of file ingamemenuxbox.c.

388 {
389 PlayerBase player = PlayerBase.Cast( GetGame().GetPlayer() );
390 string local_uid;
391 if( GetGame().GetUserManager() )
392 local_uid = GetGame().GetUserManager().GetSelectedUser().GetUid();
393 return ( uid == local_uid );
394 }
proto native owned string GetUid()

References GetGame(), GetPlayer(), BiosUserManager::GetSelectedUser(), BiosUser::GetUid(), and CGame::GetUserManager().

Referenced by Init().

◆ IsMenuClosing() [1/2]

bool UIScriptedMenu::IsMenuClosing ( )
inlineprivate

Definition at line 628 of file gesturesmenu.c.

629 {
630 return m_IsMenuClosing;
631 }
protected bool m_IsMenuClosing
Definition: gesturesmenu.c:122

Referenced by MissionBase::OnUpdate().

◆ IsMenuClosing() [2/2]

bool UIScriptedMenu::IsMenuClosing ( )
inlineprivate

Definition at line 776 of file radialquickbarmenu.c.

777 {
778 return m_IsMenuClosing;
779 }

◆ IsOnlineOpen()

bool UIScriptedMenu::IsOnlineOpen ( )
inlineprivate

Definition at line 458 of file ingamemenuxbox.c.

459 {
460 return m_OnlineMenu.IsVisible();
461 }

◆ IsPresetFixed() [1/2]

bool UIScriptedMenu::IsPresetFixed ( string  preset_name)
inlineprivate

Definition at line 59 of file sceneeditormenu.c.

60 {
61 int preset_index = GetPresetIndexByName( preset_name);
62 PresetParams item_params_array;
63 if ( preset_index > -1 && preset_index < m_PresetsTextListbox.GetNumItems() )
64 {
65 m_PresetsTextListbox.GetItemData( preset_index, 0, item_params_array );
66 return item_params_array.param2;
67 }
68 return false;
69 }
int GetPresetIndexByName(string preset_name)

References GetPresetIndexByName().

Referenced by RenderPresets(), and SetDefaultPreset().

◆ IsPresetFixed() [2/2]

bool UIScriptedMenu::IsPresetFixed ( string  preset_name)
inlineprivate

Definition at line 2194 of file scriptconsole.c.

2195 {
2196 int preset_index = GetPresetIndexByName( preset_name);
2197 PresetParams item_params_array;
2198 if ( preset_index > -1 && preset_index < m_PresetsTextListbox.GetNumItems() )
2199 {
2200 m_PresetsTextListbox.GetItemData( preset_index, 0, item_params_array );
2201 return item_params_array.param2;
2202 }
2203 return false;
2204 }

References GetPresetIndexByName().

◆ IsRespawn()

bool UIScriptedMenu::IsRespawn ( )
inlineprivate

Definition at line 235 of file dayzgame.c.

236 {
237 return m_IsRespawn;
238 }
protected bool m_IsRespawn
Definition: dayzgame.c:143

◆ IsStatic() [1/2]

bool UIScriptedMenu::IsStatic ( )
inlineprivate

Definition at line 105 of file dayzgame.c.

106 {
107 return m_IsStatic;
108 }
protected bool m_IsStatic
Definition: dayzgame.c:27

◆ IsStatic() [2/2]

bool UIScriptedMenu::IsStatic ( )
inlineprivate

Definition at line 230 of file dayzgame.c.

231 {
232 return m_IsStatic;
233 }

◆ ItemMoveDown() [1/2]

void UIScriptedMenu::ItemMoveDown ( )
inlineprivate

Definition at line 322 of file sceneeditormenu.c.

323 {
324 int new_index = GetCurrentItemIndex() + 1;
325 if ( GetCurrentItemIndex() != -1 && GetCurrentPresetIndex() != -1 && new_index < m_PresetItemsTextListbox.GetNumItems() )
326 {
329 m_PresetItemsTextListbox.SelectRow (new_index);
330 }
331 }

References GetCurrentItemIndex(), GetCurrentPresetIndex(), GetCurrentPresetName(), and RenderPresetItems().

Referenced by OnClick().

◆ ItemMoveDown() [2/2]

void UIScriptedMenu::ItemMoveDown ( )
inlineprivate

Definition at line 2314 of file scriptconsole.c.

2315 {
2316 int new_index = GetCurrentItemIndex() + 1;
2317 if ( GetCurrentItemIndex() != -1 && GetCurrentPresetIndex() != -1 && new_index < m_PresetItemsTextListbox.GetNumItems() )
2318 {
2321 m_PresetItemsTextListbox.SelectRow (new_index);
2322 }
2323 }

References GetCurrentItemIndex(), GetCurrentPresetIndex(), GetCurrentPresetName(), and RenderPresetItems().

◆ ItemMoveUp() [1/2]

void UIScriptedMenu::ItemMoveUp ( )
inlineprivate

Definition at line 311 of file sceneeditormenu.c.

312 {
313 int new_index = GetCurrentItemIndex() - 1;
314 if ( GetCurrentItemIndex() != -1 && GetCurrentPresetIndex() != -1 && new_index > -1)
315 {
318 m_PresetItemsTextListbox.SelectRow (new_index);
319 }
320 }

References GetCurrentItemIndex(), GetCurrentPresetIndex(), GetCurrentPresetName(), and RenderPresetItems().

Referenced by OnClick().

◆ ItemMoveUp() [2/2]

void UIScriptedMenu::ItemMoveUp ( )
inlineprivate

Definition at line 2303 of file scriptconsole.c.

2304 {
2305 int new_index = GetCurrentItemIndex() - 1;
2306 if ( GetCurrentItemIndex() != -1 && GetCurrentPresetIndex() != -1 && new_index > -1)
2307 {
2310 m_PresetItemsTextListbox.SelectRow (new_index);
2311 }
2312 }

References GetCurrentItemIndex(), GetCurrentPresetIndex(), GetCurrentPresetName(), and RenderPresetItems().

◆ LateInit()

void UIScriptedMenu::LateInit ( )
inlineprivate

Definition at line 347 of file scriptconsole.c.

348 {
349 m_RunColor = m_EnfScriptRun.GetColor();
352 m_ItemDisagPlugin.OnScriptMenuOpened(true);
353
354 AutoHeightSpacer autoheigh;
355 m_WgtClassesConfig.GetScript( autoheigh );
356 int flag1,flag2;
358 {
359 m_BatchSpawnQuantity.SetText(m_ConfigDebugProfile.GetBatchSpawnQuantity().ToString());
360
361 flag1 = m_ConfigDebugProfile.GetConfigClassesFlag();
362 flag2 = m_ConfigDebugProfile.GetItemCategoryFlag();
364 {
365 m_ItemPreviewCheckbox.SetChecked(m_ConfigDebugProfile.GetShowItemPreview());
366 }
367
368 array<ref CfgParam> params = m_ConfigDebugProfile.GetBatchSpawnRectangle();
369
370 m_RectSpawnRow.SetText(CfgParamInt.Cast(params.Get(0)).GetValue().ToString());
371 m_RectSpawnColumn.SetText(CfgParamInt.Cast(params.Get(1)).GetValue().ToString());
372 m_RectSpawnRowStep.SetText(CfgParamFloat.Cast(params.Get(2)).GetValue().ToString());
373 m_RectSpawnColumnStep.SetText(CfgParamFloat.Cast(params.Get(3)).GetValue().ToString());
374 }
375
376 foreach (string s:m_BaseConfigClasses)
377 {
378 Widget w = GetGame().GetWorkspace().CreateWidgets("gui/layouts/script_console/config_class_item.layout", m_WgtClassesConfig );
379 CheckBoxWidget cbw = CheckBoxWidget.Cast( w.FindAnyWidget("Item") );
380 //cbw.SetColor(Colors.RED);
381 cbw.SetText(s);
382 int indx = m_ClassCheckboxes.Count();
383 m_ClassCheckboxes.Insert(cbw,indx);
384
385
386 if(flag1 & (int)Math.Pow(2, indx))
387 {
388 string base_class_name = m_BaseConfigClasses.Get(indx);
389 m_BaseConfigClassesToggled.Insert(base_class_name);
390 cbw.SetChecked(true);
391 }
392 }
393
394
395 int counter = 0;
396 foreach(string name: m_CategoryButtonsNames)
397 {
398 string widget_name = "ItemCategory" + counter;
399
400 CheckBoxWidget btw = CheckBoxWidget.Cast(layoutRoot.FindAnyWidget(widget_name));
401 if(btw)
402 {
403 btw.SetText(name);
404 m_CategoryButtonsWidgets.Insert(btw);
405 int bit = 1 << counter;
406 if(bit & flag2)
407 {
408 btw.SetChecked(true);
409 }
410 }
411 counter++;
412 }
413
414 autoheigh.Update();
416
417 if(!m_SelectedObjectIsPreset == 1 && ITEMS_SELECTED_ROW <= m_ObjectsTextListbox.GetNumItems() && m_ObjectsTextListbox.GetNumItems() >= 0 && ITEMS_SELECTED_ROW > -1 )
418 {
421
422
424
425
428 m_PresetItemsTextListbox.SelectRow(-1);
430 }
431
432 if (m_PresetsTextListbox.GetNumItems() >= 0 )
433 {
436 }
437
438 if( m_ObjectsScope == 1 )
439 m_ShowProtected.SetChecked(true);
440 else
441 m_ShowProtected.SetChecked(false);
442
443 m_ShowOthers.SetChecked(SHOW_OTHERS);
445
447
448
449
451 {
454
455 m_SelectedObjectText.SetText( "Object : " + GetCurrentItemName() );
458 }
459
460 }
protected bool m_SelectedObjectIsPreset
protected ref map< CheckBoxWidget, int > m_ClassCheckboxes
Definition: scriptconsole.c:10
string GetCurrentObjectName()
protected string m_SelectedObject
ref array< Widget > m_CategoryButtonsWidgets
Definition: scriptconsole.c:31
void SetObject(string object)
ref array< string > m_CategoryButtonsNames
Definition: scriptconsole.c:32
string GetCurrentItemName()
proto string ToString()
static proto float Pow(float v, float power)
Return power of v ^ power.
proto native void SetText(string text, bool immedUpdate=true)
void PluginItemDiagnostic()

References ClearHierarchy(), WorkspaceWidget::CreateWidgets(), GetCurrentItemName(), GetCurrentObjectName(), GetGame(), GetPlugin(), CGame::GetWorkspace(), m_SelectedObject, name, PluginItemDiagnostic(), Math::Pow(), RenderPresetItems(), SetObject(), Widget::SetText(), float::ToString(), and AutoHeightSpacer::Update().

◆ Leave() [1/2]

void UIScriptedMenu::Leave ( )
inlineprivate

Definition at line 110 of file dayzgame.c.

111 {
112 g_Game.SetGameState( DayZGameState.MAIN_MENU );
113 g_Game.SetLoadState( DayZLoadState.MAIN_MENU_START );
114
115 g_Game.GetCallQueue(CALL_CATEGORY_SYSTEM).Call(GetGame().DisconnectSessionForce);
116
117 Close();
118 }

References CALL_CATEGORY_SYSTEM, Close(), g_Game, and GetGame().

◆ Leave() [2/2]

void UIScriptedMenu::Leave ( )
inlineprivate

Definition at line 240 of file dayzgame.c.

241 {
242 g_Game.SetGameState( DayZGameState.MAIN_MENU );
243 g_Game.SetLoadState( DayZLoadState.MAIN_MENU_START );
244
245 g_Game.GetCallQueue(CALL_CATEGORY_SYSTEM).Call(GetGame().DisconnectSessionForce);
246
247 Close();
248 }

References CALL_CATEGORY_SYSTEM, Close(), g_Game, and GetGame().

◆ LoadData()

void UIScriptedMenu::LoadData ( )
inlineprivate

Definition at line 191 of file cameratoolsmenu.c.

192 {
193 if ( !FileExist( g_Game.GetMissionFolderPath() + "/CameraTools" ) )
194 MakeDirectory( g_Game.GetMissionFolderPath() + "/CameraTools" );
195
196 m_Cameras.Clear();
197 m_Events.Clear();
198 m_Actors.Clear();
199
200 CTSaveStructure save_data = new CTSaveStructure();
201 JsonFileLoader<ref CTSaveStructure>.JsonLoadFile( g_Game.GetMissionFolderPath() + "/CameraTools/keyframe_data.json", save_data );
202
203 m_InterpTypeCombo.SetCurrentItem( save_data.m_InterpType );
204 m_InterpTypeSpeedCombo.SetCurrentItem( save_data.m_InterpSpeed );
205 SetBlurValue( save_data.m_BlurValue );
206
207 foreach ( Param6<vector, vector, float, float, float, int> transform : save_data.m_Cameras )
208 {
209 CTKeyframe kf = new CTKeyframe( m_Cameras.Count(), transform.param1, transform.param2, transform.param3, transform.param4, transform.param5, transform.param6, GetTotalTime( m_Cameras.Count() ), m_KeyframeContent, this );
210 kf.SetInterpTime( transform.param3 );
211 m_Cameras.Insert( kf );
212 }
213
214 foreach ( Param4<int, int, float, bool> event_t : save_data.m_Events )
215 {
216 CTEvent ev = new CTEvent( m_Events.Count(), event_t.param1, m_EventContent, event_t.param4, this );
217 ev.SetEventType( event_t.param2 );
218 ev.SetEventTime( event_t.param3 );
219 m_Events.Insert( ev );
220 }
221
222 foreach( Param5<vector, vector, string, ref array<string>, string> actor_t : save_data.m_Actors )
223 {
224 CTActor ac = new CTActor( m_Actors.Count(), actor_t.param1, actor_t.param2, actor_t.param3, actor_t.param4, actor_t.param5, this );
225 m_Actors.Insert( ac );
226 }
227 }
ref array< ref Param6< vector, vector, float, float, float, int > > m_Cameras
ref array< ref Param5< vector, vector, string, ref array< string >, string > > m_Actors
ref array< ref Param4< int, int, float, bool > > m_Events
void SetBlurValue(float blur)
proto native bool MakeDirectory(string name)
Makes a directory.
proto bool FileExist(string name)
Check existence of file.

References FileExist(), g_Game, CTSaveStructure::m_Actors, CTSaveStructure::m_BlurValue, CTSaveStructure::m_Cameras, CTSaveStructure::m_Events, CTSaveStructure::m_InterpSpeed, CTSaveStructure::m_InterpType, and MakeDirectory().

◆ LoadDataAsync()

void UIScriptedMenu::LoadDataAsync ( )
inlineprivate

Definition at line 56 of file creditsmenu.c.

57 {
59 for( int i = 1; i <= m_CreditsData.Departments.Count(); i++ )
60 {
61 ref CreditsDepartmentElement e = new CreditsDepartmentElement( i, m_Content, m_CreditsData.Departments.Get( i - 1 ) );
62 m_CreditsEntries.Insert( e );
63 }
64 m_Content.Update();
65 }
static JsonDataCredits GetData()
Definition: creditsloader.c:41
ref array< ref JsonDataCreditsDepartment > Departments
protected ref array< ref CreditsElement > m_CreditsEntries
Definition: creditsmenu.c:20
protected ref JsonDataCredits m_CreditsData
Definition: creditsmenu.c:17

References CreditsLoader::GetData().

◆ LoadFavoriteServers()

void UIScriptedMenu::LoadFavoriteServers ( )
inlineprivate

Definition at line 509 of file serverbrowsermenunew.c.

510 {
512
513#ifdef PLATFORM_WINDOWS
515#else
516 GetGame().GetProfileStringList( "SB_Favorites", m_Favorites );
517
518 // ignore any ids that do not follow correct IP:PORT format
519 for (int i = 0; i < m_Favorites.Count(); ++i)
520 {
521 string id = m_Favorites[i];
522 array<string> output = new array<string>;
523
524 id.Split( ":", output );
525 if ( output.Count() != 2 )
526 {
527 m_Favorites.Remove(i);
528 --i;
529 }
530 }
531
532 // only handle MAX_FAVORITES on consoles
533 if (m_Favorites.Count() > MAX_FAVORITES)
534 {
535 // favorites are ordered by when they were favorited
536 // so keep most recent favorites and ignore oldest favorites
537 m_Favorites.Invert();
539 m_Favorites.Invert();
540 }
541#endif
542 }
proto native void GetProfileStringList(string name, out TStringArray values)
Gets array of strings from profile variable.
static void GetFavoriteServers(TStringArray favServers)
const int MAX_FAVORITES

References OnlineServices::GetFavoriteServers(), GetGame(), CGame::GetProfileStringList(), and MAX_FAVORITES.

Referenced by Init(), and OnTabSwitch().

◆ LoadFooterButtonTexts() [1/3]

protected void UIScriptedMenu::LoadFooterButtonTexts ( )
inlineprivate

Initial texts load for the footer buttons.

Definition at line 764 of file ingamemenuxbox.c.

765 {
766 TextWidget uiGamecardText = TextWidget.Cast(layoutRoot.FindAnyWidget( "GamercardText" ));
767 TextWidget uiBackText = TextWidget.Cast(layoutRoot.FindAnyWidget( "BackText" ));
768 TextWidget uiSelectText = TextWidget.Cast(layoutRoot.FindAnyWidget( "SelectText" ));
769
770 if (uiGamecardText)
771 {
772 uiGamecardText.SetText(m_OpenGameCardButtonTextID);
773 }
774 if (uiBackText)
775 {
776 uiBackText.SetText(m_BackButtonTextID);
777 }
778 if (uiSelectText)
779 {
780 uiSelectText.SetText(m_SelectButtonTextID);
781 }
782 }
protected string m_OpenGameCardButtonTextID
protected string m_SelectButtonTextID
Definition: ingamemenuxbox.c:9
protected string m_BackButtonTextID

References m_BackButtonTextID.

Referenced by Init().

◆ LoadFooterButtonTexts() [2/3]

protected void UIScriptedMenu::LoadFooterButtonTexts ( )
inlineprivate

Initial texts load for the footer buttons.

Definition at line 113 of file mainmenuvideo.c.

114 {
115 TextWidget uiBackText = TextWidget.Cast(layoutRoot.FindAnyWidget( "BackText" ));
116
117 if (uiBackText)
118 {
119 uiBackText.SetText(m_BackButtonTextID);
120 }
121 }

References m_BackButtonTextID.

◆ LoadFooterButtonTexts() [3/3]

protected void UIScriptedMenu::LoadFooterButtonTexts ( )
inlineprivate

Initial texts load for the footer buttons.

Definition at line 392 of file tutorialsmenu.c.

393 {
394 TextWidget uiBackText = TextWidget.Cast(layoutRoot.FindAnyWidget( "BackText" ));
395
396 if (uiBackText)
397 {
398 uiBackText.SetText(m_BackButtonTextID);
399 }
400 }

References m_BackButtonTextID.

◆ LoadingMenu()

void UIScriptedMenu::LoadingMenu ( )
inlineprivate

Definition at line 3 of file loadingmenu.c.

4 {
5 }

◆ LoadMapMarkers()

override void UIScriptedMenu::LoadMapMarkers ( )
inlineprivate

Definition at line 302 of file mapmenu.c.

303 {
304 MapMarker marker;
305 for ( int i = 0; i < m_Map.GetMarkerArray().Count(); i++ )
306 {
307 marker = m_Map.GetMarkerArray().Get(i);
308 m_MapWidgetInstance.AddUserMark(marker.GetMarkerPos(),marker.GetMarkerText(),marker.GetMarkerColor(),MapMarkerTypes.GetMarkerTypeFromID(marker.GetMarkerIcon())/*"\\dz\\gear\\navigation\\data\\map_tree_ca.paa"*/);
309 }
310 }
vector GetMarkerPos()
int GetMarkerColor()
string GetMarkerText()
int GetMarkerIcon()

References Count, MapMarker::GetMarkerColor(), MapMarker::GetMarkerIcon(), MapMarker::GetMarkerPos(), MapMarker::GetMarkerText(), and MapMarkerTypes::GetMarkerTypeFromID().

Referenced by ActionUnfoldMapCB::PerformMapChange().

◆ LoadMods() [1/2]

void UIScriptedMenu::LoadMods ( )
inlineprivate

Definition at line 114 of file mainmenu.c.

115 {
117 GetGame().GetModInfos( modArray );
118
119 if ( modArray.Count() > 0 )
120 {
121 modArray.Remove( modArray.Count() - 1 );
122 modArray.Invert();
123 }
124
125 if ( m_ModsSimple )
126 delete m_ModsSimple;
127 if ( m_ModsDetailed )
128 delete m_ModsDetailed;
129
130 m_ModdedWarning.Show( GetGame().GetModToBeReported() );
131
132 if ( modArray.Count() > 0 )
133 {
134 layoutRoot.FindAnyWidget("ModsSimple").Show( true );
135 m_ModsTooltip = new ModsMenuTooltip(layoutRoot);
136
137 m_ModsDetailed = new ModsMenuDetailed(modArray, layoutRoot.FindAnyWidget("ModsDetailed"), m_ModsTooltip, this);
138
139 m_ModsSimple = new ModsMenuSimple(modArray, layoutRoot.FindAnyWidget("ModsSimple"), m_ModsDetailed);
140 }
141 }
proto native void GetModInfos(notnull out array< ref ModInfo > modArray)
protected ref ModsMenuTooltip m_ModsTooltip
Definition: mainmenu.c:41
protected ref ModsMenuSimple m_ModsSimple
Definition: mainmenu.c:39

References GetGame(), CGame::GetModInfos(), m_ModsDetailed, and m_ModsSimple.

Referenced by Init(), and OnShow().

◆ LoadMods() [2/2]

void UIScriptedMenu::LoadMods ( )
inlineprivate

Definition at line 67 of file mainmenuconsoles.c.

68 {
70
71 GetGame().GetModInfos( modArray );
72 if ( modArray.Count() > 0 )
73 {
74 modArray.Remove( modArray.Count() - 1 );
75 modArray.Invert();
76 }
77
78 if ( m_ModsDetailed )
79 delete m_ModsDetailed;
80
81 if ( modArray.Count() > 0 )
82 {
83 ImageWidget dlc_icon = ImageWidget.Cast( layoutRoot.FindAnyWidget("show_dlc_icon") );
84 ModInfo info = modArray[0];
85 bool isOwned = info.GetIsOwned();
86 dlc_icon.LoadImageFile( 0, info.GetLogoSmall() );
87 dlc_icon.FindAnyWidget("Owned").Show( isOwned );
88 dlc_icon.FindAnyWidget("Unowned").Show( !isOwned );
89 m_ModsDetailed = new ModsMenuDetailed(modArray, layoutRoot.FindAnyWidget("ModsDetailed"), null, this);
90 }
91 }
Definition: modinfo.c:2
proto bool GetIsOwned()
proto owned string GetLogoSmall()

References GetGame(), ModInfo::GetIsOwned(), ModInfo::GetLogoSmall(), CGame::GetModInfos(), and m_ModsDetailed.

◆ LoadTextStrings() [1/3]

protected void UIScriptedMenu::LoadTextStrings ( )
inlineprivate

Set correct bottom button texts based on platform (ps4 vs xbox texts)

Definition at line 746 of file ingamemenuxbox.c.

747 {
748 #ifdef PLATFORM_PS4
749 m_MuteButtonTextID = "#ps4_ingame_menu_mute";
750 m_UnmuteButtonTextID = "#ps4_ingame_menu_unmute";
751 m_BackButtonTextID = "#ps4_ingame_menu_back";
752 m_SelectButtonTextID = "#ps4_ingame_menu_select";
753 m_OpenGameCardButtonTextID = "#ps4_ingame_menu_opencard";
754 #else
755 m_MuteButtonTextID = "#xbox_ingame_menu_mute";
756 m_UnmuteButtonTextID = "#xbox_ingame_menu_unmute";
757 m_BackButtonTextID = "#STR_rootFrame_toolbar_bg_ConsoleToolbar_Back_BackText0";
758 m_SelectButtonTextID = "#layout_xbox_ingame_menu_select";
759 m_OpenGameCardButtonTextID = "#layout_xbox_ingame_menu_gamecard";
760 #endif
761 }
protected string m_MuteButtonTextID
Definition: ingamemenuxbox.c:6
protected string m_UnmuteButtonTextID
Definition: ingamemenuxbox.c:7

References m_BackButtonTextID.

Referenced by Init().

◆ LoadTextStrings() [2/3]

protected void UIScriptedMenu::LoadTextStrings ( )
inlineprivate

Set correct bottom button texts based on platform (ps4 vs xbox texts)

Definition at line 123 of file mainmenuvideo.c.

124 {
125 #ifdef PLATFORM_PS4
126 m_BackButtonTextID = "ps4_ingame_menu_back";
127 #else
128 m_BackButtonTextID = "STR_rootFrame_toolbar_bg_ConsoleToolbar_Back_BackText0";
129 #endif
130 }

References m_BackButtonTextID.

◆ LoadTextStrings() [3/3]

protected void UIScriptedMenu::LoadTextStrings ( )
inlineprivate

Set correct bottom button texts based on platform (ps4 vs xbox texts)

Definition at line 402 of file tutorialsmenu.c.

403 {
404 #ifdef PLATFORM_PS4
405 m_BackButtonTextID = "ps4_ingame_menu_back";
406 #else
407 m_BackButtonTextID = "STR_rootFrame_toolbar_bg_ConsoleToolbar_Back_BackText0";
408 #endif
409 }

References m_BackButtonTextID.

◆ LoginQueueBase()

void UIScriptedMenu::LoginQueueBase ( )
inlineprivate

Definition at line 29 of file dayzgame.c.

30 {
31 m_iPosition = -1;
32 m_IsStatic = false;
33 g_Game.SetKeyboardHandle(this);
34 }
protected int m_iPosition
Definition: dayzgame.c:26

References g_Game.

◆ LoginTimeBase()

void UIScriptedMenu::LoginTimeBase ( )
inlineprivate

Definition at line 145 of file dayzgame.c.

146 {
147 g_Game.SetKeyboardHandle(this);
148 m_IsStatic = false;
149 m_IsRespawn = false;
150 }

References g_Game.

◆ LogoutMenu()

void UIScriptedMenu::LogoutMenu ( )
inlineprivate

Definition at line 11 of file logoutmenu.c.

12 {
13 m_iTime = 0;
14 g_Game.SetKeyboardHandle(this);
15 }

References g_Game.

◆ MarkSelected() [1/2]

protected void UIScriptedMenu::MarkSelected ( Widget  w)
inlineprivate

Definition at line 528 of file gesturesmenu.c.

529 {
530 instance.m_SelectedItem = w;
531
532 if ( w )
533 {
534 GestureMenuItem gesture_item;
535 w.GetUserData( gesture_item );
536
537 //is not category
538 /*
539 if ( gesture_item && gesture_item.GetCategory() != GestureCategories.CATEGORIES )
540 {
541 //alter item visual
542 //TextWidget text_widget = TextWidget.Cast( gesture_item.GetRadialItemCard().FindAnyWidget( RADIAL_TEXT ) );
543 //text_widget.SetColor( ARGB( 255, 66, 175, 95 ) );
544 }
545 */
546 }
547 }

References GestureMenuItem().

◆ MarkSelected() [2/2]

protected void UIScriptedMenu::MarkSelected ( Widget  w)
inlineprivate

Definition at line 565 of file radialquickbarmenu.c.

566 {
567 m_SelectedItem = w;
568
569 if (w)
570 {
571 RadialQuickbarItem quickbar_item;
572 w.GetUserData( quickbar_item );
573 ItemBase item;
574
575 if (quickbar_item && Class.CastTo(item,quickbar_item.GetItem()))
576 {
577 w.SetFlags(WidgetFlags.DISABLED);
578 }
579 else
580 {
581 w.ClearFlags(WidgetFlags.DISABLED);
582 }
583/*
584 //is not category
585 if ( quickbar_item )
586 {
587 if ( quickbar_item.GetItem() )
588 {
589 //alter item visual
590 TextWidget text_widget = TextWidget.Cast( quickbar_item.GetRadialItemCard().FindAnyWidget( TEXT_ITEM_NAME ) );
591 text_widget.SetColor( ARGB( 255, 66, 175, 95 ) );
592 }
593 else
594 {
595 //alter item visual
596 TextWidget title_widget = TextWidget.Cast( quickbar_item.GetRadialItemCard().FindAnyWidget( TEXT_ITEM_TITLE ) );
597 title_widget.SetColor( ARGB( 255, 66, 175, 95 ) );
598 }
599 }
600*/
601 }
602 }
protected Widget m_SelectedItem
Definition: gesturesmenu.c:120

References Class::CastTo(), and RadialQuickbarItem().

◆ MenuRequestRespawn() [1/2]

void UIScriptedMenu::MenuRequestRespawn ( UIScriptedMenu  menu,
bool  random 
)
inlineprivate

Definition at line 345 of file ingamemenu.c.

346 {
347 if (RespawnDialogue.Cast(menu))
348 GameRespawn(random);
349 }
protected void GameRespawn(bool random)
Definition: ingamemenu.c:351
void RespawnDialogue()

References GameRespawn().

◆ MenuRequestRespawn() [2/2]

void UIScriptedMenu::MenuRequestRespawn ( UIScriptedMenu  menu,
bool  random 
)
inlineprivate

Definition at line 381 of file ingamemenuxbox.c.

382 {
383 if (RespawnDialogue.Cast(menu))
384 GameRetry(random);
385 }
void GameRetry(bool random)

References GameRetry().

◆ NewPreset() [1/2]

void UIScriptedMenu::NewPreset ( string  preset_name)
inlineprivate

Definition at line 87 of file sceneeditormenu.c.

88 {
89 m_ConfigDebugProfile.PresetAdd( preset_name );
91 }

References RefreshLists().

Referenced by OnClick().

◆ NewPreset() [2/2]

void UIScriptedMenu::NewPreset ( string  preset_name)
inlineprivate

Definition at line 1922 of file scriptconsole.c.

1923 {
1924 m_ConfigDebugProfile.PresetAdd( preset_name );
1925 RefreshLists();
1926 }

References RefreshLists().

◆ NextCharacter() [1/2]

void UIScriptedMenu::NextCharacter ( )
inlineprivate

Definition at line 416 of file mainmenu.c.

417 {
419 {
420 int charID = m_ScenePC.GetIntroCharacter().GetNextCharacterID();
421 //m_ScenePC.GetIntroCharacter().SaveCharName();
422 if( charID != m_ScenePC.GetIntroCharacter().GetCharacterID())
423 {
424 m_ScenePC.GetIntroCharacter().SetCharacterID(charID);
426 }
427 }
428 }
void OnChangeCharacter(bool create_character=true)
Definition: mainmenu.c:444

References DayZIntroScene::GetIntroCharacter(), and OnChangeCharacter().

Referenced by OnClick().

◆ NextCharacter() [2/2]

void UIScriptedMenu::NextCharacter ( )
inlineprivate

Definition at line 604 of file serverbrowsermenunew.c.

605 {
606
607 }

◆ NextPrevPage()

void UIScriptedMenu::NextPrevPage ( bool  next)
inlineprivate

Definition at line 54 of file bookmenu.c.

55 {
56 if (next)
57 {
59 }
60 else
61 {
63 }
64
65 float maxOffset = 0;
67 {
69 }
70
71 if (m_content_pos < 0)
72 {
73 m_content_pos = 0;
74 }
75
76 if (m_content_pos > maxOffset)
77 {
78 m_content_pos = maxOffset;
79 }
80
81 m_content.SetContentOffset(m_content_pos, true);
82
83 float pagesTotal = Math.Ceil(m_content_total_height / m_page_height);
84 float currPage = Math.Round(m_content_pos / m_page_height) + 1;
85
86 m_page.SetText( currPage.ToString() + " / " + pagesTotal.ToString() );
87 }
protected float m_content_total_height
Definition: bookmenu.c:8
protected float m_content_pos
Definition: bookmenu.c:9
static proto float Round(float f)
Returns mathematical round of value.
static proto float Ceil(float f)
Returns ceil of value.

References Math::Ceil(), m_page_height, Math::Round(), and float::ToString().

Referenced by OnClick(), and ReadBook().

◆ NoteMenu()

void UIScriptedMenu::NoteMenu ( )
inlineprivate

Definition at line 13 of file notemenu.c.

14 {
15 MissionGameplay mission = MissionGameplay.Cast( GetGame().GetMission() );
16 if( mission )
17 {
18 IngameHud hud = IngameHud.Cast( mission.GetHud() );
19 if ( hud )
20 {
21 hud.ShowHudUI( false );
22 }
23 }
24 }

References GetGame(), Mission::GetHud(), and mission.

◆ OnAttemptSelectPreset()

void UIScriptedMenu::OnAttemptSelectPreset ( int  index)
inlineprivate

Definition at line 475 of file keybindingsmenu.c.

476 {
477 bool changed = m_GroupsContainer.IsChanged() && m_OriginalPresetIndex != index;
478 m_TargetPresetIndex = index;
479
480 if (changed)
481 {
482 g_Game.GetUIManager().ShowDialog("#main_menu_configure", "#main_menu_configure_desc", MODAL_ID_PRESET_CHANGE, DBT_YESNO, DBB_YES, DMT_QUESTION, this);
483 }
484
485 m_PresetSelector.SetCanSwitch(!changed);
486 }
protected int m_TargetPresetIndex
const int MODAL_ID_PRESET_CHANGE

References g_Game.

◆ OnAttemptTabSwitch()

void UIScriptedMenu::OnAttemptTabSwitch ( int  source,
int  target 
)
inlineprivate

Definition at line 230 of file optionsmenu.c.

231 {
232 bool changed = IsAnyTabChanged();
233 if ( changed )
234 {
235 if (!g_Game.GetUIManager().IsDialogVisible() && !g_Game.GetUIManager().IsModalVisible())
236 {
237 int id = target + DIALOG_TAB_OFFSET;
238 g_Game.GetUIManager().ShowDialog("#main_menu_configure", "#main_menu_configure_desc", id, DBT_YESNO, DBB_YES, DMT_QUESTION, this);
239 }
240 }
241 else
242 {
244 }
245
246 m_Tabber.SetCanSwitch(!changed);
247 }
void ResetCurrentTab()
Definition: optionsmenu.c:317
const int DIALOG_TAB_OFFSET
Definition: optionsmenu.c:4

References DIALOG_TAB_OFFSET, g_Game, IsAnyTabChanged(), and ResetCurrentTab().

◆ OnChange() [1/3]

override bool UIScriptedMenu::OnChange ( Widget  w,
int  x,
int  y,
bool  finished 
)
inlineprivate

Definition at line 27 of file chatinputmenu.c.

28 {
29 super.OnChange(w, x, y, finished);
30
31 if (!finished) return false;
32
33 string text = m_edit_box.GetText();
34
35 if (text != "")
36 {
37 GetGame().ChatPlayer(text);
38 if( !GetGame().IsMultiplayer() )
39 {
40 string name;
42 ChatMessageEventParams chat_params = new ChatMessageEventParams( CCDirect, name, text, "" );
43 MissionGameplay.Cast( GetGame().GetMission() ).m_Chat.Add( chat_params );
44 }
45 }
46
47 m_close_timer.Run(0.1, this, "Close");
48
49 GetUApi().GetInputByName("UAPersonView").Supress();
50
51 return true;
52 }
proto native void ChatPlayer(string text)
proto native UAInput GetInputByName(string sInputName)
proto native void Supress()
Param4< int, string, string, string > ChatMessageEventParams
channel, from, text, color config class
Definition: gameplay.c:389

References CGame::ChatPlayer(), GetGame(), UAInputAPI::GetInputByName(), CGame::GetPlayerName(), GetUApi(), name, UAInput::Supress(), x, and y.

◆ OnChange() [2/3]

override bool UIScriptedMenu::OnChange ( Widget  w,
int  x,
int  y,
bool  finished 
)
inlineprivate

Definition at line 748 of file sceneeditormenu.c.

749 {
750 super.OnChange(w, x, y, finished);
751
752 if (w == m_ClWgtEbxFilter)
753 {
755 return true;
756 }
757 else if (w == m_SlWgtEbxFilter)
758 {
760 return true;
761 }
762 else if ( w == m_PrWgtPoxX && finished )
763 {
764 m_ModuleSceneManager.SelectedObjectSetPosX(m_PrWgtPoxX.GetText().ToFloat());
765 }
766 else if ( w == m_PrWgtPoxY && finished )
767 {
768 m_ModuleSceneManager.SelectedObjectSetPosY(m_PrWgtPoxY.GetText().ToFloat());
769 }
770 else if ( w == m_PrWgtPoxZ && finished )
771 {
772 m_ModuleSceneManager.SelectedObjectSetPosZ(m_PrWgtPoxZ.GetText().ToFloat());
773 }
774 else if ( w == m_PrWgtDir && finished )
775 {
776 m_ModuleSceneManager.SelectedObjectSetRot(m_PrWgtDir.GetText().ToFloat());
777 return true;
778 }
779 else if ( w == m_PrWgtDmg && finished )
780 {
781 m_ModuleSceneManager.SelectedObjectSetDamage(m_PrWgtDmg.GetText().ToFloat());
782 return true;
783 }
784 else if ( w == m_QuantityEditBox )
785 {
786 m_ConfigDebugProfile.SetItemQuantity( GetCurrentPresetName(), GetCurrentItemIndex(), m_QuantityEditBox.GetText().ToInt() );
787 return true;
788 }
789 else if ( w == m_DamageEditBox )
790 {
791 m_ConfigDebugProfile.SetItemHealth( GetCurrentPresetName(), GetCurrentItemIndex(), m_DamageEditBox.GetText().ToFloat() );
792 return true;
793 }
794
795 bool ret = ComponentsOnChange(w, x, y, finished);
796
797 return false;
798 }
private bool ComponentsOnChange(Widget w, int x, int y, bool finished)

References ComponentsOnChange(), GetCurrentItemIndex(), GetCurrentPresetName(), UpdateListClasses(), UpdateListObjects(), x, and y.

◆ OnChange() [3/3]

override bool UIScriptedMenu::OnChange ( Widget  w,
int  x,
int  y,
bool  finished 
)
inlineprivate

Definition at line 1632 of file scriptconsole.c.

1633 {
1634 super.OnChange(w, x, y, finished);
1635
1636 if (w == m_ObjectFilter)
1637 {
1638 m_RefreshFilterTimer.Run(0.85, this, "ChangeFilterItems", null, false);
1639 return true;
1640 }
1641 else if ( w == m_SoundFilter )
1642 {
1643 m_RefreshFilterTimer.Run(0.85, this, "ChangeFilterSound", null, false);
1644 return true;
1645 }
1646 else if (w == m_QuantityEditBox && ( GetCurrentItemIndex() >= 0 || GetCurrentPresetName() != "") )
1647 {
1648 m_ConfigDebugProfile.SetItemQuantity( GetCurrentPresetName(), GetCurrentItemIndex(), m_QuantityEditBox.GetText().ToFloat() );
1649 return true;
1650 }
1651 else if (w == m_DrawDistanceWidget)
1652 {
1653 DRAW_DISTANCE = m_DrawDistanceWidget.GetText().ToFloat();
1654 return true;
1655 }
1656 else if (w == m_DamageEditBox && ( GetCurrentItemIndex() >= 0 || GetCurrentPresetName() != "") )
1657 {
1658 m_ConfigDebugProfile.SetItemHealth( GetCurrentPresetName(), GetCurrentItemIndex(), m_DamageEditBox.GetText().ToFloat() );
1659 return true;
1660 }
1661 else if ( w == m_ObjectConfigFilter )
1662 {
1664 return true;
1665 }
1666 else if ( w == m_BatchSpawnQuantity )
1667 {
1668 m_ConfigDebugProfile.SetBatchSpawnQuantity(m_BatchSpawnQuantity.GetText().ToInt());
1669 return true;
1670 }
1671 else if ((w == m_RectSpawnRow || w == m_RectSpawnColumn || w == m_RectSpawnRowStep || w == m_RectSpawnColumnStep))
1672 {
1673 if (w == m_RectSpawnRow || w == m_RectSpawnColumn)
1674 {
1675 int rowQ = m_RectSpawnRow.GetText().ToInt();
1676 int columnQ = m_RectSpawnColumn.GetText().ToInt();
1677 int result = columnQ * rowQ;
1678 m_BatchSpawnQuantity.SetText(result.ToString());
1679 m_ConfigDebugProfile.SetBatchSpawnQuantity(m_BatchSpawnQuantity.GetText().ToInt());
1680 }
1681
1683 {
1684 m_ConfigDebugProfile.SetBatchSpawnRectangle(m_RectSpawnRow.GetText().ToInt(),m_RectSpawnColumn.GetText().ToInt(), m_RectSpawnRowStep.GetText().ToFloat(),m_RectSpawnColumnStep.GetText().ToFloat());
1685 }
1686 return true;
1687 }
1688
1689
1690 else if ( w == m_ShowProtected )
1691 {
1692 if( m_ShowProtected.IsChecked() )
1693 {
1694 m_ObjectsScope = 1;
1695 }
1696 else
1697 {
1698 m_ObjectsScope = 2;
1699 }
1701 return true;
1702 }
1703 else if ( w == m_ShowOthers )
1704 {
1705 PluginRemotePlayerDebugClient plugin_remote_client = PluginRemotePlayerDebugClient.Cast( GetPlugin(PluginRemotePlayerDebugClient) );
1706 if( m_ShowOthers.IsChecked() )
1707 {
1708 plugin_remote_client.RequestPlayerInfo( PlayerBase.Cast(GetGame().GetPlayer()), 1 );
1709 m_UpdateMap = 1;
1710 SHOW_OTHERS = true;
1711 }
1712 else
1713 {
1714 plugin_remote_client.RequestPlayerInfo( PlayerBase.Cast(GetGame().GetPlayer()), 0 );
1715 m_UpdateMap = 0;
1716 SHOW_OTHERS = false;
1717 }
1718 return true;
1719 }
1720 else if ( w == m_ClearInventory )
1721 {
1722 CLEAR_IVN = m_ClearInventory.IsChecked();
1723 return true;
1724 }
1725 else if ( m_CategoryButtonsWidgets.Find(w) >= 0 )
1726 {
1727
1728 int pos = m_CategoryButtonsWidgets.Find(w);
1729 int bit = Math.Pow(2,pos);
1730 CheckBoxWidget cbw = CheckBoxWidget.Cast(w);
1731 if ( cbw.IsChecked() )
1732 {
1734 cbw.SetTextColor(ARGB( 255, 255, 0, 0 ));
1735 }
1736 else
1737 {
1738 m_CategoryMask = (m_CategoryMask & ~bit);
1739 cbw.SetTextColor(ARGB( 255, 255, 255,255 ));
1740 }
1741
1743 return true;
1744 }
1745 else if ( w == m_TimeSlider || w == m_DateDay || w == m_DateYear || w == m_DateMonth || w == m_DateHour || w == m_DateMinute )
1746 {
1748 }
1749
1750 return false;
1751 }
void ChangeConfigFilter()
static bool CLEAR_IVN
Definition: scriptconsole.c:20

References ARGB(), ChangeConfigFilter(), ChangeFilterItems(), GetCurrentItemIndex(), GetCurrentPresetName(), GetGame(), GetPlayer(), GetPlugin(), Math::Pow(), UpdateTime(), x, and y.

◆ OnChangeCharacter()

void UIScriptedMenu::OnChangeCharacter ( bool  create_character = true)
inlineprivate

Definition at line 444 of file mainmenu.c.

445 {
447 {
448 int charID = m_ScenePC.GetIntroCharacter().GetCharacterID();
449 if (create_character)
450 {
451 m_ScenePC.GetIntroCharacter().CreateNewCharacterById( charID );
452 }
453 m_PlayerName.SetText( m_ScenePC.GetIntroCharacter().GetCharacterNameById( charID ) );
454
455 Widget w = m_CustomizeCharacter.FindAnyWidget(m_CustomizeCharacter.GetName() + "_label");
456
457 if ( w )
458 {
459 TextWidget text = TextWidget.Cast( w );
460
461 if( m_ScenePC.GetIntroCharacter().IsDefaultCharacter() )
462 {
463 text.SetText("#layout_main_menu_customize_char");
464 }
465 else
466 {
467 text.SetText("#layout_main_menu_rename");
468 }
469 }
470 if (m_ScenePC.GetIntroCharacter().GetCharacterObj() )
471 {
472 if ( m_ScenePC.GetIntroCharacter().GetCharacterObj().IsMale() )
473 m_ScenePC.GetIntroCharacter().SetCharacterGender(ECharGender.Male);
474 else
475 m_ScenePC.GetIntroCharacter().SetCharacterGender(ECharGender.Female);
476 }
477
478 //update character stats
479 m_Stats.UpdateStats();
480 }
481 }

References DayZIntroScene::GetIntroCharacter(), m_PlayerName, and m_Stats.

Referenced by NextCharacter(), OnShow(), PreviousCharacter(), and Refresh().

◆ OnChanged()

void UIScriptedMenu::OnChanged ( )
inlineprivate

Definition at line 259 of file optionsmenu.c.

260 {
261 bool changed = IsAnyTabChanged();
262
263 if (GetGame().GetInput().IsEnabledMouseAndKeyboard())
264 {
265 if ( changed )
266 {
267 m_Reset.ClearFlags( WidgetFlags.IGNOREPOINTER );
269 m_Apply.ClearFlags( WidgetFlags.IGNOREPOINTER );
271 }
272 else
273 {
274 m_Apply.SetFlags( WidgetFlags.IGNOREPOINTER );
276 m_Reset.SetFlags( WidgetFlags.IGNOREPOINTER );
278 }
279 }
280
281 m_CanApplyOrReset = changed;
282 #ifdef PLATFORM_CONSOLE
284 #endif
285
286 m_Tabber.AlignTabbers();
287 }

References ColorDisable(), ColorNormal(), GetGame(), GetInput(), IsAnyTabChanged(), and UpdateControlsElements().

Referenced by Init().

◆ OnClick() [1/27]

override bool UIScriptedMenu::OnClick ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

Definition at line 73 of file dayzgame.c.

74 {
75 super.OnClick(w, x, y, button);
76 if ( w == m_btnLeave )
77 {
78 Leave();
79 return true;
80 }
81 return false;
82 }
void Leave()
Definition: dayzgame.c:110

References x, and y.

◆ OnClick() [2/27]

override bool UIScriptedMenu::OnClick ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

Definition at line 189 of file dayzgame.c.

190 {
191 super.OnClick(w, x, y, button);
192 if ( w == m_btnLeave )
193 {
194 Leave();
195 return true;
196 }
197 return false;
198 }

References x, and y.

◆ OnClick() [3/27]

override bool UIScriptedMenu::OnClick ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

Definition at line 34 of file bookmenu.c.

35 {
36 super.OnClick(w, x, y, button);
37
38 switch (w.GetUserID())
39 {
41 NextPrevPage(false);
42 return true;
44 NextPrevPage(true);
45 return true;
46 case IDC_CANCEL:
47 Close();
48 return true;
49 }
50
51 return false;
52 }
void NextPrevPage(bool next)
Definition: bookmenu.c:54
const int IDC_BOOK_VIEWER_PREV
Definition: constants.c:131
const int IDC_BOOK_VIEWER_NEXT
Definition: constants.c:132

References Close(), IDC_BOOK_VIEWER_NEXT, IDC_BOOK_VIEWER_PREV, IDC_CANCEL, NextPrevPage(), x, and y.

◆ OnClick() [4/27]

override bool UIScriptedMenu::OnClick ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

Definition at line 747 of file cameratoolsmenu.c.

748 {
749 if ( button == MouseState.LEFT )
750 {
751 if ( w == m_SaveKeyframe )
752 {
753 SaveKeyframe();
754 return true;
755 }
756 else if ( w == m_DeleteKeyframe )
757 {
759 return true;
760 }
761 else if ( w == m_ViewKeyframe )
762 {
763 ViewKeyframe();
764 return true;
765 }
766 else if ( w == m_SaveEvent )
767 {
768 SaveEvent();
769 return true;
770 }
771 else if ( w == m_DeleteEvent )
772 {
773 DeleteEvent();
774 return true;
775 }
776 else if ( w == m_ViewEvent )
777 {
778 ViewEvent();
779 return true;
780 }
781 else if ( w == m_AddKeyframe )
782 {
783 AddKeyframe();
784 return true;
785 }
786 else if ( w == m_AddEvent )
787 {
788 AddEvent( 0 );
789 return true;
790 }
791 else if ( w == m_Play )
792 {
793 Play();
794 return true;
795 }
796 else if ( w == m_Stop )
797 {
798 Stop();
799 return true;
800 }
801 else if ( w == m_Save )
802 {
803 SaveData();
804 return true;
805 }
806 else if ( w == m_Load )
807 {
808 LoadData();
809 return true;
810 }
811 else if ( w == m_AddActor )
812 {
813 AddActor( m_ActorTypeWidget.GetText() );
814 }
815 else if ( w == m_AddItem )
816 {
817 AddItem( m_ActorIdWidget.GetText(), m_ActorItemTypeWidget.GetText() );
818 }
819 else if ( w == m_AddHandsItem )
820 {
821 AddHandsItem( m_ActorIdWidget.GetText(), m_ActorItemTypeWidget.GetText() );
822 }
823 else if ( w == m_CopyButton )
824 {
825 string clipboardIn = FreeDebugCamera.GetInstance().GetPosition().ToString(false)+"|"+ FreeDebugCamera.GetInstance().GetOrientation().ToString(false);
826 GetGame().CopyToClipboard( clipboardIn );
827
828 //Print(clipboardIn);
829 }
830 else if ( w == m_ApplyButton )
831 {
832 string camText = m_CameraEditbox.GetText();
833 if (camText && camText.IndexOf("|") !=-1)
834 {
835 int seperatorIndex = camText.IndexOf("|");
836 int length = camText.Length();
837
838 string posStr = camText.Substring(0,seperatorIndex);
839 string oriStr = camText.Substring(seperatorIndex+1, length - seperatorIndex - 1);
840 FreeDebugCamera.GetInstance().SetPosition(posStr.ToVector());
841 FreeDebugCamera.GetInstance().SetOrientation(oriStr.ToVector());
842 }
843 }
844 }
845 return false;
846 }
void AddItem(string id, string type)
void AddActor(string actor_type)
void AddHandsItem(string id, string type)
void AddEvent(int actor_index)
MouseState
Definition: ensystem.c:311
proto vector ToVector()
Returns a vector from a string.
proto string Substring(int start, int len)
Substring of 'str' from 'start' position 'len' number of characters.
proto native int IndexOf(string sample)
Finds 'sample' in 'str'. Returns -1 when not found.

References CGame::CopyToClipboard(), GetGame(), string::IndexOf(), string::Length(), Play(), Stop(), string::Substring(), and string::ToVector().

◆ OnClick() [5/27]

override bool UIScriptedMenu::OnClick ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

Definition at line 449 of file controlsxboxnew.c.

450 {
451 if (button == MouseState.LEFT)
452 {
453 if (w == m_Back)
454 {
455 Back();
456 return true;
457 }
458 }
459 return false;
460 }

References Back(), and m_Back.

◆ OnClick() [6/27]

override bool UIScriptedMenu::OnClick ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

Definition at line 18 of file earlyaccessmenu.c.

19 {
20 super.OnClick(w, x, y, button);
21
22 if (w.GetUserID() == IDC_OK)
23 {
24 Close();
25 return true;
26 }
27
28 return false;
29 }

References Close(), IDC_OK, x, and y.

◆ OnClick() [7/27]

override bool UIScriptedMenu::OnClick ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

Definition at line 44 of file helpscreen.c.

45 {
46 super.OnClick(w, x, y, button);
47
48 if ( w == m_CloseConsoleButton )
49 {
50 Close();
51 return true;
52 }
53
54 return false;
55 }

References Close(), x, and y.

◆ OnClick() [8/27]

override bool UIScriptedMenu::OnClick ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

Definition at line 156 of file ingamemenu.c.

157 {
158 super.OnClick(w, x, y, button);
159
160 if (w == m_ContinueButton)
161 {
163 return true;
164 }
165 else if (w == m_RestartButton)
166 {
168 return true;
169 }
170 else if (w == m_RespawnButton)
171 {
173 return true;
174 }
175 else if (w == m_OptionsButton)
176 {
178 return true;
179 }
180 else if (w == m_ExitButton)
181 {
182 OnClick_Exit();
183 return true;
184 }
185 /*else if (w == m_FavoriteButton)
186 {
187 ToggleFavoriteServer();
188 }*/
189 else if (w == m_CopyInfoButton)
190 {
192 }
193
194 return false;
195 }
protected void OnClick_Options()
Definition: ingamemenu.c:236
protected void OnClick_Continue()
Definition: ingamemenu.c:197
protected void OnClick_Exit()
Definition: ingamemenu.c:241
string m_ServerInfoText
Definition: ingamemenu.c:3
protected void OnClick_Respawn()
Definition: ingamemenu.c:214
protected void OnClick_Restart()
Definition: ingamemenu.c:202

References CGame::CopyToClipboard(), GetGame(), OnClick_Continue(), OnClick_Exit(), OnClick_Options(), OnClick_Respawn(), OnClick_Restart(), x, and y.

◆ OnClick() [9/27]

override bool UIScriptedMenu::OnClick ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

Definition at line 225 of file ingamemenuxbox.c.

226 {
227 super.OnClick(w, x, y, button);
228
229 switch ( w.GetUserID() )
230 {
232 {
234 return true;
235 }
236 case IDC_MAIN_OPTIONS:
237 {
238 EnterScriptedMenu(MENU_OPTIONS);
239 return true;
240 }
242 {
243 EnterScriptedMenu(MENU_XBOX_CONTROLS);
244 return true;
245 }
246 case IDC_MAIN_QUIT:
247 {
248 GetGame().GetUIManager().ShowDialog("#main_menu_exit", "#main_menu_exit_desc", IDC_INT_EXIT, DBT_YESNO, DBB_YES, DMT_QUESTION, NULL);
249 return true;
250 }
251 case IDC_INT_RETRY:
252 {
253 if ( !GetGame().IsMultiplayer() )
254 {
255 GetGame().GetUIManager().ShowDialog("#main_menu_restart", "Are you sure you want to restart?", IDC_INT_RETRY, DBT_YESNO, DBB_YES, DMT_QUESTION, this);
256 }
257 else
258 {
259 GetGame().GetUIManager().ShowDialog("#main_menu_respawn", "#main_menu_respawn_question", IDC_INT_RETRY, DBT_YESNO, DBB_YES, DMT_QUESTION, this);
260 }
261 return true;
262 }
263 case IDC_MAIN_ONLINE:
264 {
265 m_OnlineMenu.Show( true );
266 layoutRoot.FindAnyWidget( "play_panel_root" ).Show( false );
267 layoutRoot.FindAnyWidget( "play_panel_root2" ).Show( GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer() );
268 //layoutRoot.FindAnyWidget( "dayz_logo" ).Show( false );
269 layoutRoot.FindAnyWidget( "Select" ).Show( false );
270 m_ServerInfoPanel.FocusFirst();
271 return true;
272 }
273 case 117:
274 {
275 EnterScriptedMenu(MENU_TUTORIAL);
276 return true;
277 }
278 case IDC_MULTI_INVITE:
279 {
281 return true;
282 }
283 }
284
285 if( w == layoutRoot.FindAnyWidget( "backbtn" ) )
286 {
287 CloseOnline();
288 }
289 else if ( w == m_RestartDeadButton )
290 {
291 if ( GetGame().GetMission().GetRespawnModeClient() == GameConstants.RESPAWN_MODE_CUSTOM )
292 {
293 GetGame().GetCallQueue(CALL_CATEGORY_GUI).Call(GetGame().GetUIManager().EnterScriptedMenu,MENU_RESPAWN_DIALOGUE,this);
294 }
295 else
296 {
297 GameRetry(true);
298 }
299 return true;
300 }
301
302 return false;
303 }
static void ShowInviteScreen()
const int BUTTON_XBOX_CONTROLS
const int RESPAWN_MODE_CUSTOM
Definition: constants.c:853
const int MENU_TUTORIAL
Definition: constants.c:181
const int MENU_XBOX_CONTROLS
Definition: constants.c:174
const int MENU_RESPAWN_DIALOGUE
Definition: constants.c:186
const int MENU_OPTIONS
Definition: constants.c:160
void Continue()
Timer continue when it was paused.
Definition: tools.c:246
const int IDC_INT_EXIT
Definition: constants.c:137
const int IDC_MAIN_OPTIONS
Definition: constants.c:121
const int IDC_MULTI_INVITE
Definition: constants.c:129
const int IDC_MAIN_CONTINUE
Definition: constants.c:124
const int IDC_MAIN_ONLINE
Definition: constants.c:127

References BUTTON_XBOX_CONTROLS, ScriptCallQueue::Call(), CALL_CATEGORY_GUI, CloseOnline(), Continue(), GameRetry(), CGame::GetCallQueue(), GetGame(), GetInput(), CGame::GetUIManager(), IDC_INT_EXIT, IDC_INT_RETRY, IDC_MAIN_CONTINUE, IDC_MAIN_ONLINE, IDC_MAIN_OPTIONS, IDC_MAIN_QUIT, IDC_MULTI_INVITE, MENU_OPTIONS, MENU_RESPAWN_DIALOGUE, MENU_TUTORIAL, MENU_XBOX_CONTROLS, GameConstants::RESPAWN_MODE_CUSTOM, UIManager::ShowDialog(), OnlineServices::ShowInviteScreen(), x, and y.

◆ OnClick() [10/27]

override bool UIScriptedMenu::OnClick ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

Definition at line 38 of file inspectmenunew.c.

39 {
40 super.OnClick(w, x, y, button);
41
42 switch (w.GetUserID())
43 {
44 case IDC_CANCEL:
45 Close();
46 return true;
47 }
48
49 return false;
50 }

References Close(), IDC_CANCEL, x, and y.

◆ OnClick() [11/27]

override bool UIScriptedMenu::OnClick ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

Definition at line 32 of file itemdropwarningmenu.c.

33 {
34 super.OnClick(w, x, y, button);
35
36 if (w.GetUserID() == IDC_OK)
37 {
38 Close();
39 return true;
40 }
41
42 return false;
43 }

References Close(), IDC_OK, x, and y.

◆ OnClick() [12/27]

override bool UIScriptedMenu::OnClick ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

Definition at line 69 of file logoutmenu.c.

70 {
71 super.OnClick(w, x, y, button);
72
73 if (w == m_bLogoutNow)
74 {
76
77 return true;
78 }
79 else if (w == m_bCancel)
80 {
81 Hide();
82 Cancel();
83 return true;
84 }
85
86 return false;
87 }
void Cancel()
Definition: invitemenu.c:69
void Hide()
Definition: dayzgame.c:90

References Mission::AbortMission(), Cancel(), GetGame(), CGame::GetMission(), Hide(), x, and y.

◆ OnClick() [13/27]

override bool UIScriptedMenu::OnClick ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

Definition at line 156 of file mapmenu.c.

157 {
158 super.OnClick(w, x, y, button);
159
160 switch (w.GetUserID())
161 {
162 case IDC_CANCEL:
163 CloseMapMenu();
164 return true;
165 }
166
167 return false;
168 }
void CloseMapMenu()
Definition: mapmenu.c:312

References CloseMapMenu(), IDC_CANCEL, x, and y.

◆ OnClick() [14/27]

override bool UIScriptedMenu::OnClick ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

Definition at line 335 of file charactercreationmenu.c.

336 {
337 if( w == m_Apply )
338 {
339 Apply();
340 return true;
341 }
342 else if (w == m_Save )
343 {
344 Save();
346 return true;
347 }
348 else if ( w == m_RandomizeCharacter )
349 {
351 return true;
352 }
353 else if ( w == m_BackButton )
354 {
355 Back();
356 return true;
357 }
358 return false;
359 }
void Apply()
renames character
void Save()
saves default character

References Apply(), UIManager::Back(), Back(), GetGame(), CGame::GetUIManager(), RandomizeCharacter(), and Save().

◆ OnClick() [15/27]

override bool UIScriptedMenu::OnClick ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

Definition at line 183 of file keybindingsmenu.c.

184 {
185 if( button == MouseState.LEFT )
186 {
187 if( w == m_Apply )
188 {
189 Apply();
190 return true;
191 }
192 else if( w == m_Back )
193 {
194 Back();
195 return true;
196 }
197 else if( w == m_Undo )
198 {
199 Reset();
200 return true;
201 }
202 else if( w == m_Defaults )
203 {
205 return true;
206 }
207 }
208 return false;
209 }
void Reset()
Undoes the unsaved changes and reverts to previous state. Does not reset to defaults!

References Apply(), Back(), m_Back, Reset(), and SetToDefaults().

◆ OnClick() [16/27]

override bool UIScriptedMenu::OnClick ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

Definition at line 162 of file mainmenu.c.

163 {
164 if ( button == MouseState.LEFT )
165 {
166 if ( w == m_Play )
167 {
169 Play();
170 return true;
171 }
172 else if ( w == m_ChooseServer )
173 {
176 return true;
177 }
178 else if ( w == m_CustomizeCharacter )
179 {
181 return true;
182 }
183 else if ( w == m_TutorialButton )
184 {
186 return true;
187 }
188 else if ( w == m_MessageButton )
189 {
190 OpenCredits();
191 return true;
192 }
193 else if ( w == m_SettingsButton )
194 {
195 OpenSettings();
196 return true;
197 }
198 else if ( w == m_Exit )
199 {
200 Exit();
201 return true;
202 }
203 else if ( w == m_PrevCharacter )
204 {
206 return true;
207 }
208 else if ( w == m_NextCharacter )
209 {
211 return true;
212 }
213 else if ( w == m_PlayVideo )
214 {
216 PlayVideo();
217 return true;
218 }
219 else if ( w == m_Tutorials )
220 {
223 return true;
224 }
225 }
226 return false;
227 }
void OpenSettings()
Definition: mainmenu.c:493
void OpenTutorials()
Definition: mainmenu.c:503
void PlayVideo()
Definition: mainmenu.c:498
void OpenMenuCustomizeCharacter()
Definition: mainmenu.c:411
void OpenCredits()
Definition: mainmenu.c:508
void PreviousCharacter()
Definition: mainmenu.c:430
void NextCharacter()
Definition: mainmenu.c:416

References Exit(), m_ChooseServer, m_Play, m_PlayVideo, m_Tutorials, NextCharacter(), OpenCredits(), OpenMenuCustomizeCharacter(), OpenMenuServerBrowser(), OpenSettings(), OpenTutorials(), Play(), PlayVideo(), and PreviousCharacter().

◆ OnClick() [17/27]

override bool UIScriptedMenu::OnClick ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

Definition at line 118 of file mainmenuconsoles.c.

119 {
120 if ( w == m_Play )
121 {
124 return true;
125 }
126 else if ( w == m_Options )
127 {
130 return true;
131 }
132 else if ( w == m_PlayVideo )
133 {
134 m_Mission.StopMusic();
137 return true;
138 }
139 else if ( w == m_Tutorials )
140 {
143 return true;
144 }
145 else if ( w == m_Controls )
146 {
149 return true;
150 }
151 else if ( w == m_CustomizeCharacter )
152 {
155 return true;
156 }
157 else if ( w == m_ChangeAccount )
158 {
161 return true;
162 }
163 else if ( w == m_OpenDLC )
164 {
166 if (m_ModsDetailed.IsOpen() )
167 {
168 m_ModsDetailed.Close();
169 }
170 else
171 {
172 m_ModsDetailed.Open();
173 m_ModsDetailed.HighlightFirst();
174 }
175 #ifdef PLATFORM_CONSOLE
177 #endif
178 return true;
179 }
180 else if ( w == m_MessageButton )
181 {
182 OpenCredits();
183 return true;
184 }
185 return false;
186 }

References ChangeAccount(), m_ChangeAccount, m_Controls, m_Controls, m_CustomizeCharacter, m_Mission, m_OpenDLC, m_Options, m_Play, m_PlayVideo, m_Tutorials, OpenCredits(), OpenMenuControls(), OpenMenuCustomizeCharacter(), OpenMenuOptions(), OpenMenuPlayVideo(), OpenMenuServerBrowser(), OpenMenuTutorials(), and UpdateControlsElements().

◆ OnClick() [18/27]

override bool UIScriptedMenu::OnClick ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

Definition at line 411 of file tutorialsmenu.c.

412 {
413 if( button == MouseState.LEFT )
414 {
415 if( w == m_Back )
416 {
417 Back();
418 return true;
419 }
420 }
421 return false;
422 }

References Back(), and m_Back.

◆ OnClick() [19/27]

override bool UIScriptedMenu::OnClick ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

Definition at line 111 of file optionsmenu.c.

112 {
113 if ( button == MouseState.LEFT )
114 {
115 switch (w)
116 {
117 case m_Apply:
118 {
119 Apply();
120 return true;
121 }
122 case m_Back:
123 {
124 Back();
125 return true;
126 }
127 case m_Reset:
128 {
130 return true;
131 }
132 case m_Defaults:
133 {
134 //SetToDefaults();
136 return true;
137 }
138 }
139 }
140 return false;
141 }
void PerformSetToDefaults()

References Apply(), Back(), m_Apply, m_Back, m_Defaults, m_Reset, PerformSetToDefaults(), and ResetCurrentTab().

◆ OnClick() [20/27]

override bool UIScriptedMenu::OnClick ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

Definition at line 149 of file serverbrowsermenunew.c.

150 {
151 if ( button == MouseState.LEFT )
152 {
153 if ( w == m_Play )
154 {
155 Play();
156 return true;
157 }
158 else if ( w == m_Back )
159 {
160 Back();
161 return true;
162 }
163 else if ( w == m_CustomizeCharacter )
164 {
166 return true;
167 }
168 }
169 return false;
170 }

References Back(), CustomizeCharacter(), m_Back, and Play().

◆ OnClick() [21/27]

override bool UIScriptedMenu::OnClick ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

Definition at line 98 of file notemenu.c.

99 {
100 super.OnClick(w, x, y, button);
101
102 /* string txt;
103 m_edit.GetText(txt);
104 Print(m_edit.GetLinesCount());
105 Print(txt);
106 Print(txt.Length());*/
107
108 switch (w.GetUserID())
109 {
110 case IDC_CANCEL:
111 Close();
112 return true;
113 case IDC_OK:
114 if (m_Paper && m_Pen && m_IsWriting)
115 {
116 string edit_text;
117 m_edit.GetText(edit_text);
118 edit_text = MiscGameplayFunctions.SanitizeString(edit_text);
119 // Print("edit_text: " + edit_text);
120 Param1<string> text = new Param1<string>(edit_text);
121 m_Paper.RPCSingleParam(ERPCs.RPC_WRITE_NOTE_CLIENT, text, true);
122 }
123 Close();
124 return true;
125 }
126
127 return false;
128 }
ERPCs
Definition: erpcs.c:2

References Close(), IDC_CANCEL, IDC_OK, x, and y.

◆ OnClick() [22/27]

override bool UIScriptedMenu::OnClick ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

Definition at line 34 of file presetsmenu.c.

35 {
36 super.OnClick(w, x, y, button);
37
38 switch (w.GetUserID())
39 {
40 case IDC_CANCEL:
41 Close();
42
43 return true;
44
45 case IDC_OK:
46 int index = m_schemes_list.GetSelectedRow();
47 if (index != -1)
48 {
49 GetGame().GetInput().SetProfile(index);
51 Close();
52 }
53
54 return true;
55 }
56
57 return false;
58 }
proto native int SetProfile(int index)
setting active profile
proto void Invoke(void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
invoke call on all inserted methods with given arguments

References Close(), GetGame(), CGame::GetInput(), CGame::GetMission(), Mission::GetOnInputPresetChanged(), IDC_CANCEL, IDC_OK, ScriptInvoker::Invoke(), Input::SetProfile(), x, and y.

◆ OnClick() [23/27]

override bool UIScriptedMenu::OnClick ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

Definition at line 46 of file respawndialogue.c.

47 {
48 super.OnClick(w, x, y, button);
49
50 switch (w.GetUserID())
51 {
52 case IDC_CANCEL:
53 {
54 Close();
55 return true;
56 }
58 {
59 return RequestRespawn(false);
60 }
62 {
63 return RequestRespawn(true);
64 }
65 }
66 return false;
67 }
bool RequestRespawn(bool random)

References Close(), ID_RESPAWN_CUSTOM, ID_RESPAWN_RANDOM, IDC_CANCEL, RequestRespawn(), x, and y.

◆ OnClick() [24/27]

override bool UIScriptedMenu::OnClick ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

Definition at line 517 of file sceneeditormenu.c.

518 {
519 super.OnClick(w, x, y, button);
520
521 int row_index;
522
523 if ( w == m_WgtBtnSceneManager )
524 {
525 PopupOpen(POPUP_ID_SCENE_MANAGER, Param.Cast( NULL ) );
526
527 return true;
528 }
529 else if( w == m_ConfigsButton )
530 {
532 return true;
533 }
534 else if( w == m_PresetsTextListbox )
535 {
539 return true;
540 }
541 else if ( w == m_PresetSetDefaultButton )
542 {
543 if ( GetCurrentPresetName() != "" )
544 {
546 }
547 return true;
548 }
549 else if ( w == m_PresetNewButton )
550 {
552 RefreshLists();
553 return true;
554 }
555 else if ( w == m_PresetRenameButton )
556 {
558 return true;
559 }
560 else if( w == m_CopyToClipboardButton )
561 {
563 return true;
564 }
565 else if ( w == m_PresetDeleteButton )
566 {
567 if ( GetCurrentPresetName() != "" )
568 {
569 DeletePreset();
570 }
571 return true;
572 }
574 {
576
577 float distance = m_SpawnDistanceEditBox.GetText().ToFloat();
578 float health = -1;
579 int quantity = -1;
580 if( GetCurrentItemIndex() != -1 )
581 {
583 quantity = m_ConfigDebugProfile.GetItemQuantity( GetCurrentPresetName(), GetCurrentItemIndex() );
584 }
585
586 switch ( w )
587 {
589 {
591 {
592 // SpawnPresetOnGround
593 ;//SetPreset( true, m_SelectedObject, spawn_type, distance );
594 }
595 else
596 m_Developer.SpawnEntityOnCursorDir( PlayerBase.Cast( GetGame().GetPlayer() ), m_SelectedObject, quantity, distance, health );
597 break;
598 }
599
601 {
602 Man player = GetGame().GetPlayer();
603
605 vector rayEnd = rayStart + GetGame().GetCurrentCameraDirection() * 1.5;
606 vector hitPos;
607 vector hitNormal;
608 int hitComponentIndex;
609 ref set<Object> hitObjects = new set<Object>;
610 DayZPhysics.RaycastRV(rayStart, rayEnd, hitPos, hitNormal, hitComponentIndex, hitObjects, NULL, player);
611
612 Object target = NULL;
613 if( hitObjects.Count() )
614 target = hitObjects.Get(0);
615
616 if ( target != NULL && target.IsInherited(EntityAI) )
617 {
618 EntityAI att_parent = EntityAI.Cast( target );
619 m_Developer.SpawnEntityAsAttachment( PlayerBase.Cast( player ), att_parent, m_SelectedObject, health, quantity);
620 }
621 else
622 {
623 m_Developer.SpawnEntityAsAttachment( PlayerBase.Cast( player ), player, m_SelectedObject, health, quantity);
624 }
625 break;
626 }
627
629 {
630 m_Developer.SpawnEntityInInventory( PlayerBase.Cast( GetGame().GetPlayer() ), m_SelectedObject, health, quantity);
631 break;
632 }
633 }
634 return true;
635 }
636 else if( w == m_PresetItemsTextListbox )
637 {
640
641 if( GetCurrentItemIndex() != -1 )
642 {
643 float item_health = m_ConfigDebugProfile.GetItemHealth( GetCurrentPresetName(), GetCurrentItemIndex() );
644 int item_quantity = m_ConfigDebugProfile.GetItemQuantity( GetCurrentPresetName(), GetCurrentItemIndex() );
645
646 m_DamageEditBox.SetText( item_health.ToString() );
647 m_QuantityEditBox.SetText( item_quantity.ToString() );
648 }
649
650 return true;
651 }
652 else if( w == m_UpButton )
653 {
654 ItemMoveUp();
655 return true;
656 }
657 else if( w == m_DownButton )
658 {
659 ItemMoveDown();
660 return true;
661 }
662 else if( w == m_WgtBtnLeftPresets )
663 {
664 if( m_WgtPnlWrapper.IsVisible() )
665 {
666 m_WgtPnlWrapper.Show(false);
667 m_WgtBtnLeftPresets.SetText("Presets >>");
668 }
669 else
670 {
671 m_WgtPnlWrapper.Show(true);
672 m_WgtBtnLeftPresets.SetText("Presets <<");
673 }
674
675 return true;
676 }
677 else if ( w == m_PresetAddItemtButton )
678 {
680 return true;
681 }
682 else if ( w == m_PresetRemoveItemButton )
683 {
685 return true;
686 }
687 else if ( w == m_WgtBtnPositionManager )
688 {
689 m_PopupScriptPositionManager = UIPopupScriptPositionManager.Cast( PopupOpen( POPUP_ID_POSITION_MANAGER, Param.Cast( NULL ) ) );
690 return true;
691 }
692 else if ( w == m_WgtBtnSceneSettings )
693 {
695 return true;
696 }
697 else if ( w == m_SlWgtSelect )
698 {
699 row_index = m_SlWgtLbxObjectsList.GetSelectedRow();
700
701 if ( m_SlObjectsList.Count() > 0 && m_SlObjectsList.Count() > row_index )
702 {
703 m_ModuleSceneManager.SelectObject(m_SlObjectsList.GetElement(row_index));
704 }
705
706 return true;
707 }
708 else if ( w == m_SlWgtFocus )
709 {
710 m_ModuleSceneManager.SelectedObjectFocus();
711
712 return true;
713 }
714 else if ( w == m_WgtBtnSceneSave )
715 {
716 m_ModuleSceneManager.SceneSave();
717
718 return true;
719 }
720 else if ( w == m_WgtBtnEditorSettings )
721 {
723
724 return true;
725 }
726 else if ( w == m_WgtBtnEditInitScript )
727 {
728 Param2<int, SceneObject> param = new Param2<int, SceneObject>( m_ModuleSceneManager.GetSelectedSceneObjectIndex(), m_ModuleSceneManager.GetSelectedSceneObject() );
730
731 return true;
732 }
733 else if ( w == m_WgtBtnDeleteRuler )
734 {
735 m_ModuleSceneManager.RulerDelete();
736
737 return true;
738 }
739
740 bool ret = ComponentsOnClick(w, x, y, button);
741
742 return ret;
743 }
proto native vector GetCurrentCameraPosition()
proto native vector GetCurrentCameraDirection()
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
Definition: param.c:12
void SetDefaultPreset(int preset_index)
UIPopupScript PopupOpen(int popup_id, Param param)
void SaveProfileSpawnDistance()
protected UIPopupScriptPositionManager m_PopupScriptPositionManager
void RemoveItemFromPreset()
protected ref map< int, SceneObject > m_SlObjectsList
private bool ComponentsOnClick(Widget w, int x, int y, int button)

References AddItemToPreset(), ComponentsOnClick(), CGame::CopyToClipboard(), DeletePreset(), CGame::GetCurrentCameraDirection(), CGame::GetCurrentCameraPosition(), GetCurrentItemIndex(), GetCurrentItemName(), GetCurrentPresetIndex(), GetCurrentPresetName(), GetGame(), CGame::GetPlayer(), GetPlayer(), ItemMoveDown(), ItemMoveUp(), m_SelectedObject, m_SpawnAsAttachmentButton, m_SpawnInInventoryButton, m_SpawnOnGroundButton, PopupOpen(), DayZPhysics::RaycastRV(), RefreshLists(), RemoveItemFromPreset(), RenderPresetItems(), SaveProfileSpawnDistance(), SetDefaultPreset(), float::ToString(), x, and y.

◆ OnClick() [25/27]

override bool UIScriptedMenu::OnClick ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

Definition at line 930 of file scriptconsole.c.

931 {
932 super.OnClick(w, x, y, button);
933
934 int i;
935 int objects_row_index;
936 PlayerBase player = PlayerBase.Cast( GetGame().GetPlayer() );
937
938 PluginDeveloper module_dev = PluginDeveloper.Cast( GetPlugin(PluginDeveloper) );
939
940 if ( w == m_ClientLogClearButton )
941 {
942 Clear();
943 return true;
944 }
945 else if ( w == m_ConfigHierarchyTextListbox )
946 {
947 objects_row_index = m_ConfigHierarchyTextListbox.GetSelectedRow();
948 //Print(objects_row_index);
949
950 if ( objects_row_index > -1 && objects_row_index < m_ConfigHierarchyTextListbox.GetNumItems() )
951 {
952 ConfigParamsEx config_params;
953 m_ConfigHierarchyTextListbox.GetItemData( objects_row_index, 0, config_params );
954
955 if ( config_params.param1 == false )
956 {
957 ExpandHierarchy( objects_row_index );
958 }
959 else
960 {
961 CollapseHierarchy( objects_row_index );
962 }
963 RenderVariables( objects_row_index );
964 }
965 return true;
966 }
967 else if ( w == m_PositionsListbox )
968 {
969 string position_name = GetCurrentPositionName();
970 vector position = m_ConfigDebugProfileFixed.GetPositionByName( position_name );
971 m_TeleportX.SetText( position[0].ToString() );
972 m_TeleportY.SetText( position[2].ToString() );
973 return true;
974 }
975 else if ( w == m_TeleportButton )
976 {
977 float pos_x = m_TeleportX.GetText().ToFloat();
978 float pos_z = m_TeleportY.GetText().ToFloat();
979 float pos_y = GetGame().SurfaceY(pos_x, pos_z);
980 vector v = Vector(pos_x, pos_y, pos_z);
981 string txt = m_TeleportXYZ.GetText();
982 if (m_TeleportXYZ.GetText() != "" && m_TeleportXYZ.GetText() != DEFAULT_POS_XYZ)
983 {
984 string pos = m_TeleportXYZ.GetText();
985 pos.Replace("<", "");
986 pos.Replace(">", "");
987 pos.Replace(",", "");
988 v = pos.ToVector();
989 }
990 m_Developer.Teleport(player, v);
991 return true;
992 }
993 else if ( w == m_ButtonCopyPos )
994 {
996 return true;
997 }
998 else if ( w == m_CopySoundset )
999 {
1001 return true;
1002 }
1003 else if ( w == m_LogsEnabled )
1004 {
1005 //Log("m_LogsEnabled: "+ToString(m_LogsEnabled.IsChecked()));
1006
1008 {
1009 m_ConfigDebugProfile.SetLogsEnabled(m_LogsEnabled.IsChecked());
1011 }
1012
1013 return true;
1014 }
1015 else if ( w == m_SpawnBatchButton )
1016 {
1017 int count = m_BatchSpawnQuantity.GetText().ToInt();
1018 int rows = m_RectSpawnRow.GetText().ToInt();
1019 int columns = m_RectSpawnColumn.GetText().ToInt();
1020 float rowStep = m_RectSpawnRowStep.GetText().ToFloat();
1021 float columnStep = m_RectSpawnColumnStep.GetText().ToFloat();
1022 m_Developer.SpawnEntityOnGroundPatternGrid(player, m_SelectedObject,count, m_DamageEditBox.GetText().ToFloat(), 1, rows, columns, rowStep, columnStep );
1023 return true;
1024 }
1025
1026 else if ( w == m_HudDCharStats )
1027 {
1029 {
1030 m_ConfigDebugProfile.SetCharacterStatsVisible(m_HudDCharStats.IsChecked());
1031 }
1032
1033 // Refresh UI by new settings
1034 m_MissionGameplay.GetHudDebug().RefreshByLocalProfile();
1035
1036 return true;
1037 }
1038 else if ( w == m_HudDCharLevels )
1039 {
1041 {
1042 m_ConfigDebugProfile.SetCharacterLevelsVisible(m_HudDCharLevels.IsChecked());
1043 }
1044
1045 // Refresh UI by new settings
1046 m_MissionGameplay.GetHudDebug().RefreshByLocalProfile();
1047
1048 return true;
1049 }
1050 else if ( w == m_HudDCharStomach )
1051 {
1053 {
1054 m_ConfigDebugProfile.SetCharacterStomachVisible(m_HudDCharStomach.IsChecked());
1055 }
1056
1057 // Refresh UI by new settings
1058 m_MissionGameplay.GetHudDebug().RefreshByLocalProfile();
1059
1060 return true;
1061 }
1062 else if ( w == m_CategoryMergeType )
1063 {
1065 {
1066 m_ConfigDebugProfile.SetMergeType(m_CategoryMergeType.IsChecked());
1067 }
1069 // Refresh UI by new settings
1070 m_MissionGameplay.GetHudDebug().RefreshByLocalProfile();
1071
1072
1073 return true;
1074 }
1075 else if (w == m_WatchItem)
1076 {
1077 int row = m_VicinityListbox.GetSelectedRow();
1078
1079 if (m_VicinityItems.IsValidIndex(row))
1080 {
1081 Object entity = m_VicinityItems.Get(row);
1082 if(entity)
1083 {
1084 //Print(entity);
1085 PluginDeveloper.SetDeveloperItemClientEx(entity);
1086 }
1087 }
1088
1089
1090 }
1091 else if ( w == m_ItemPreviewCheckbox)
1092 {
1094 {
1095 m_ConfigDebugProfile.SetShowItemPreview(m_ItemPreviewCheckbox.IsChecked());
1096 if(!m_ItemPreviewCheckbox.IsChecked())
1097 {
1099 }
1100 }
1101 }
1102 else if ( w == m_HudDVersion )
1103 {
1105 {
1106 m_ConfigDebugProfile.SetVersionVisible(m_HudDVersion.IsChecked());
1107 }
1108
1109 // Refresh UI by new settings
1110 m_MissionGameplay.GetHudDebug().RefreshByLocalProfile();
1111
1112 return true;
1113 }
1114 else if ( w == m_HudDTemperature )
1115 {
1117 {
1118 m_ConfigDebugProfile.SetTempVisible(m_HudDTemperature.IsChecked());
1119 }
1120
1121 // Refresh UI by new settings
1122 m_MissionGameplay.GetHudDebug().RefreshByLocalProfile();
1123
1124 return true;
1125 }
1126 else if ( w == m_HudDCharModifiers )
1127 {
1129 {
1130 m_ConfigDebugProfile.SetCharacterModifiersVisible(m_HudDCharModifiers.IsChecked());
1131 }
1132
1133 // Refresh UI by new settings
1134 m_MissionGameplay.GetHudDebug().RefreshByLocalProfile();
1135
1136 return true;
1137 }
1138 else if ( w == m_HudDCharAgents )
1139 {
1141 {
1142 m_ConfigDebugProfile.SetCharacterAgentsVisible(m_HudDCharAgents.IsChecked());
1143 }
1144
1145 // Refresh UI by new settings
1146 m_MissionGameplay.GetHudDebug().RefreshByLocalProfile();
1147
1148 return true;
1149 }
1150 else if ( w == m_HudDCharDebug )
1151 {
1153 {
1154 m_ConfigDebugProfile.SetCharacterDebugVisible(m_HudDCharDebug.IsChecked());
1155 }
1156
1157 // Refresh UI by new settings
1158 m_MissionGameplay.GetHudDebug().RefreshByLocalProfile();
1159
1160 return true;
1161 }
1162 else if ( w == m_HudDFreeCamCross )
1163 {
1165 {
1166 m_ConfigDebugProfile.SetFreeCameraCrosshairVisible(m_HudDFreeCamCross.IsChecked());
1167 }
1168
1169 // Refresh UI by new settings
1170 m_MissionGameplay.GetHudDebug().RefreshByLocalProfile();
1171
1173
1174 return true;
1175 }
1176 else if ( w == m_ObjectsTextListbox )
1177 {
1178 SelectObject();
1179 return true;
1180 }
1181 else if ( w == m_ObjectFilter )
1182 {
1184 return true;
1185 }
1186 else if ( w == m_SoundFilter )
1187 {
1189 return true;
1190 }else if ( w == m_SoundFilter )
1191 {
1193 return true;
1194 }
1195 else if ( w == m_SpawnInInvButton || w == m_SpawnGroundButton || w == m_SpawnAsAttachment || w == m_SpawnSpecial )
1196 {
1198
1199 objects_row_index = m_ObjectsTextListbox.GetSelectedRow();
1200
1202 vector rayEnd = rayStart + GetGame().GetCurrentCameraDirection() * 3;
1203 vector hitPos;
1204 vector hitNormal;
1205 int hitComponentIndex;
1206 set<Object> hitObjects = new set<Object>;
1207 //DayZPhysics.RaycastRV(rayStart, rayEnd, hitPos, hitNormal, hitComponentIndex, hitObjects, NULL, player, );
1208 DayZPhysics.RaycastRV(rayStart, rayEnd, hitPos, hitNormal, hitComponentIndex, hitObjects, NULL, player, false, false, ObjIntersectView, 0.3);
1209
1210 Object target = NULL;
1211 if( hitObjects.Count() )
1212 target = hitObjects.Get(0);
1213
1214 if ( m_SelectedObject != "" )
1215 {
1216 // @NOTE: duplicate code in PluginDeveloper.c
1217 float distance = m_SpawnDistanceEditBox.GetText().ToFloat();
1218 if ( m_SelectedObjectIsPreset == 1 )
1219 {
1220 switch ( w )
1221 {
1223 {
1224 if ( target != NULL && target.IsInherited(EntityAI) )
1225 {
1226 EntityAI att_parent = EntityAI.Cast( target ) ;
1228 }
1229 else
1230 {
1231 SpawnPreset(player, false, m_SelectedObject);
1232 }
1233 break;
1234 }
1236 {
1237 SpawnPreset(player, false, m_SelectedObject, InventoryLocationType.GROUND, distance);
1238 break;
1239 }
1240
1241 case m_SpawnSpecial:
1242 {
1243 SpawnPreset(player, false, m_SelectedObject, InventoryLocationType.GROUND, distance);
1244 break;
1245 }
1246
1247 default:
1248 {
1250 break;
1251 }
1252 }
1253 }
1254 else
1255 {
1256
1257 float health = m_DamageEditBox.GetText().ToFloat() * MiscGameplayFunctions.GetTypeMaxGlobalHealth( m_SelectedObject );
1258 float quantity = -1;
1259 int cfgQuantity = GetGame().ConfigGetInt("CfgVehicles " + m_SelectedObject + " varQuantityMax");
1260
1261 if ( cfgQuantity > 0 )
1262 {
1263 quantity = m_QuantityEditBox.GetText().ToFloat() * GetGame().ConfigGetInt("CfgVehicles " + m_SelectedObject + " varQuantityMax");
1264 if ( GetGame().ConfigGetFloat("CfgVehicles " + m_SelectedObject + " canBeSplit") )
1265 {
1266 quantity = m_QuantityEditBox.GetText().ToFloat() * GetGame().ConfigGetInt("CfgVehicles " + m_SelectedObject + " varStackMax");
1267 }
1268 }
1269
1270 switch ( w )
1271 {
1273 {
1274 m_Developer.SpawnEntityOnCursorDir(player, m_SelectedObject, quantity, distance, health );
1275 break;
1276 }
1277
1279 {
1280 m_Developer.SpawnEntityOnCursorDir(player, m_SelectedObject, quantity, distance, health );
1281 break;
1282 }
1283
1284 case m_SpawnSpecial:
1285 {
1286 m_Developer.SpawnEntityOnCursorDir(player, m_SelectedObject, quantity, distance, health, true);
1287 break;
1288 }
1289
1291 {
1292 if ( target != NULL && target.IsInherited(EntityAI) )
1293 {
1294 EntityAI att_parent2 = EntityAI.Cast( target );
1295 m_Developer.SpawnEntityAsAttachment( player, att_parent2, m_SelectedObject, 100, -1);
1296 }
1297 else
1298 {
1299 m_Developer.SpawnEntityAsAttachment( player, player, m_SelectedObject, 100, -1);
1300 }
1301 break;
1302 }
1303
1304 case m_SpawnInInvButton:
1305 {
1306 m_Developer.SpawnEntityInInventory(player, m_SelectedObject, -1, -1);
1307 break;
1308 }
1310 {
1311 m_Developer.SpawnEntityOnCursorDir(player, m_SelectedObject, quantity, distance, health );
1312 break;
1313 }
1314 }
1315 }
1316 }
1317 return true;
1318 }
1319 else if ( w == m_DiagToggleButton )
1320 {
1321 int toggle_row_index = m_DiagToggleTextListbox.GetSelectedRow();
1322 bool toggle_state = GetGame().GetDiagModeEnable( toggle_row_index );
1323 GetGame().SetDiagModeEnable( toggle_row_index, !toggle_state );
1324 return true;
1325 }
1326 else if ( w == m_DiagDrawButton )
1327 {
1328 int draw_row_index = m_DiagDrawmodeTextListbox.GetSelectedRow();
1329 GetGame().SetDiagDrawMode( draw_row_index );
1330 return true;
1331 }
1332 else if ( w == m_CloseConsoleButton )
1333 {
1334 Close();
1336 return true;
1337 }
1338 else if ( w == m_PresetsTextListbox )
1339 {
1340 SelectPreset();
1341 return true;
1342 }
1343 else if ( w == m_PresetItemsTextListbox )
1344 {
1345 m_ObjectsTextListbox.SelectRow(-1);
1348 m_SelectedObjectText.SetText( "Object : " + GetCurrentItemName() );
1351
1352 return true;
1353 }
1354 else if ( w == m_PresetSetDefaultButton )
1355 {
1356 if ( GetCurrentPresetName()!= "" )
1357 {
1359 }
1360 return true;
1361 }
1362 else if ( w == m_PresetNewButton )
1363 {
1364 g_Game.GetUIManager().EnterScriptedMenu(MENU_SCRIPTCONSOLE_DIALOG_PRESET_NAME, this);
1365 return true;
1366 }
1367 else if ( w == m_PresetDeleteButton )
1368 {
1369 if ( GetCurrentPresetName()!= "" )
1370 {
1371 DeletePreset();
1372 }
1373 return true;
1374 }
1375 else if ( w == m_PresetRenameButton )
1376 {
1377 if ( GetCurrentPresetName()!= "" )
1378 {
1379 g_Game.GetUIManager().EnterScriptedMenu(MENU_SCRIPTCONSOLE_DIALOG_PRESET_RENAME, this);
1380 }
1381 return true;
1382 }
1383 else if ( w == m_PresetAddItemtButton )
1384 {
1386 return true;
1387 }
1388 else if ( w == m_ItemNameCopy )
1389 {
1391 return true;
1392 }
1393 else if ( w == m_SelectedRowCopy )
1394 {
1396 return true;
1397 }
1398 else if ( w == m_PresetRemoveItemButton )
1399 {
1401 return true;
1402 }
1403 else if ( w == m_ItemMoveUpButton )
1404 {
1405 ItemMoveUp();
1406 return true;
1407 }
1408 else if ( w == m_ItemMoveDownButton )
1409 {
1410 ItemMoveDown();
1411 return true;
1412 }
1413 else if (w == m_EnfScriptRun)
1414 {
1415 if ( m_ScriptServer)
1417 else
1418 RunEnscript();
1419 return true;
1420 }
1421 else if (w == m_DrawInWorld)
1422 {
1424 return true;
1425
1426 }
1427 else if (w == m_DrawInWorldClear)
1428 {
1430 return true;
1431 }
1432 else if (w == m_PlaySoundsetButton)
1433 {
1434 GetGame().GetPlayer().PlaySoundSet( m_SoundSet, m_ConfigData.param2, 0, 0 );
1435 return true;
1436 }
1437 else if (w == m_PlaySoundset || w == m_PlaySoundsetLooped)
1438 {
1439 int selected_row_index = m_SoundsTextListbox.GetSelectedRow();
1440 string soundSetName;
1441 if ( selected_row_index != -1 )
1442 {
1443 m_SoundsTextListbox.GetItemText( selected_row_index, 0, soundSetName );
1444
1445 if (w == m_PlaySoundsetLooped)
1446 {
1447 m_SoundSet = SEffectManager.PlaySoundEnviroment(soundSetName, GetGame().GetPlayer().GetPosition(), 0, 0, true);
1448 }
1449 else
1450 {
1452 }
1453 }
1454 return true;
1455 }
1456 else if (w == m_StopSoundset)
1457 {
1458 if (m_SoundSet)
1459 m_SoundSet.Stop();
1460 return true;
1461 }
1462
1463 else
1464 {
1465 CheckBoxWidget cbw = CheckBoxWidget.Cast(w);
1466
1467 if(cbw && m_ClassCheckboxes.Contains(cbw))
1468 {
1469 //Print("checkbox toggled " + m_ClassCheckboxes.Get(cbw));
1470 int checkbox_index = m_ClassCheckboxes.Get(cbw);
1471 string base_class_name = m_BaseConfigClasses.Get(checkbox_index);
1472
1473 int index_toggled = m_BaseConfigClassesToggled.Find(base_class_name);
1474
1475 int flag, new_flag;
1476
1478 {
1479 flag = m_ConfigDebugProfile.GetConfigClassesFlag();
1480 }
1481
1482 if (cbw.IsChecked() )
1483 {
1484 if( index_toggled == -1 )//not found
1485 {
1486 m_BaseConfigClassesToggled.Insert(base_class_name);
1487
1489 {
1490 new_flag = (flag | (int)Math.Pow(2, checkbox_index));
1491 }
1492 }
1493 }
1494 else if(index_toggled != -1)
1495 {
1496 m_BaseConfigClassesToggled.Remove(index_toggled);
1497
1499 {
1500 new_flag = (flag ^ (int)Math.Pow(2, checkbox_index));
1501 }
1502 }
1503 m_ConfigDebugProfile.SetConfigClassesFlag(new_flag);
1504 /*
1505 Print("-----------------------------------------");
1506 Print("flag = " + new_flag);
1507 foreach(string text:m_BaseConfigClassesToggled)
1508 {
1509 Print(text);
1510 }
1511 Print("-----------------------------------------");
1512 */
1514
1515 }
1516 }
1517
1518 // tabs
1519 for (i = 0; i < TABS_COUNT; i++)
1520 {
1521 if (w == m_Tab_buttons[i])
1522 {
1523 SelectTab(i);
1524 return true;
1525 }
1526 }
1527
1528 return false;
1529 }
class RecipeCacheData int
proto native float SurfaceY(float x, float z)
proto native void SetDiagModeEnable(int diag_mode, bool enabled)
Set specific debug mode.
proto native void SetDiagDrawMode(int diag_draw_mode)
Set debug draw mode.
proto native bool GetDiagModeEnable(int diag_mode)
Gets state of specific debug mode.
override void Stop()
Stops sound.
Definition: effectsound.c:237
proto native void SetItem(EntityAI object)
static void SetLogsEnabled(bool enable)
Definition: debug.c:573
static EffectSound PlaySoundEnviroment(string sound_set, vector position, float play_fade_in=0, float stop_fade_out=0, bool loop=false)
Create and play an EffectSound, updating environment variables.
static ref ConfigParamsEx m_ConfigData
Definition: scriptconsole.c:8
static void DrawItemsClear()
void ShowItemButtons()
void RunEnscriptServer()
void AddItemToClipboard(TextListboxWidget text_listbox_widget)
void CollapseHierarchy(int row)
void ChangeFilterSound()
protected const int TABS_COUNT
Definition: tutorialsmenu.c:16
static void DrawItems(string type, float distance=0)
void ExpandHierarchy(int row)
void SelectObject(bool hide_presets=true)
ButtonWidget m_SpawnGroundPatternGrid
vector GetMapPos()
ref array< Object > m_VicinityItems
Definition: scriptconsole.c:25
void RenderVariables(int row)
void SpawnPreset(EntityAI target, bool clear_inventory, string preset_name, InventoryLocationType location=InventoryLocationType.ATTACHMENT, float distance=0)
string GetCurrentPositionName()
proto string ToString()
const int MENU_SCRIPTCONSOLE_DIALOG_PRESET_NAME
Definition: constants.c:164
const int MENU_SCRIPTCONSOLE_DIALOG_PRESET_RENAME
Definition: constants.c:165
proto int Replace(string sample, string replace)
Replace all occurrances of 'sample' in 'str' by 'replace'.
void RefreshCrosshairVisibility()
Definition: huddebug.c:238
InventoryLocationType
types of Inventory Location
proto float ConfigGetFloat(string entryName)

References AddItemToClipboard(), AddItemToPreset(), ScriptCallQueue::Call(), CALL_CATEGORY_SYSTEM, ChangeFilterItems(), ChangeFilterSound(), Clear(), ClearHierarchy(), Close(), CollapseHierarchy(), ConfigGetFloat(), CGame::ConfigGetInt(), CGame::CopyToClipboard(), DeletePreset(), DrawItems(), DrawItemsClear(), Mission::EnableAllInputs(), ExpandHierarchy(), g_Game, CGame::GetCallQueue(), CGame::GetCurrentCameraDirection(), CGame::GetCurrentCameraPosition(), GetCurrentItemName(), GetCurrentPositionName(), GetCurrentPresetIndex(), GetCurrentPresetName(), CGame::GetDiagModeEnable(), GetGame(), GetMapPos(), CGame::GetMission(), CGame::GetPlayer(), GetPlayer(), GetPlugin(), GetPosition, int, ItemMoveDown(), ItemMoveUp(), m_ItemPreviewWidget, m_SelectedObject, m_SpawnAsAttachment, m_SpawnGroundButton, m_SpawnGroundPatternGrid, m_SpawnInInvButton, m_SpawnSpecial, MENU_SCRIPTCONSOLE_DIALOG_PRESET_NAME, MENU_SCRIPTCONSOLE_DIALOG_PRESET_RENAME, SEffectManager::PlaySoundEnviroment(), Math::Pow(), DayZPhysics::RaycastRV(), RefreshCrosshairVisibility(), RemoveItemFromPreset(), RenderVariables(), string::Replace(), RunEnscript(), RunEnscriptServer(), SaveProfileSpawnDistance(), SelectObject(), SelectPreset(), SelectTab(), SetDefaultPreset(), CGame::SetDiagDrawMode(), CGame::SetDiagModeEnable(), ItemPreviewWidget::SetItem(), LogManager::SetLogsEnabled(), SetObject(), ShowItemButtons(), ShowItemTransferButtons(), SpawnPreset(), EffectSound::Stop(), CGame::SurfaceY(), TABS_COUNT, ToString(), string::ToVector(), Vector(), x, and y.

◆ OnClick() [26/27]

override bool UIScriptedMenu::OnClick ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

Definition at line 22 of file scriptconsolenewpresetdialog.c.

23 {
24 super.OnClick(w, x, y, button);
25
26 if (w.GetUserID() == IDC_OK)
27 {
29 if ( ui_menu != NULL && m_Editbox.GetText() )
30 {
31 ScriptConsole scripted_console = ScriptConsole.Cast( ui_menu );
32 scripted_console.NewPreset( m_Editbox.GetText());
33 }
34
35 Close();
36 return true;
37 }
38 else if (w.GetUserID() == IDC_CANCEL)
39 {
40 Close();
41 return true;
42 }
43
44 return false;
45 }

References Close(), UIManager::FindMenu(), GetGame(), GetText(), CGame::GetUIManager(), IDC_CANCEL, IDC_OK, MENU_SCRIPTCONSOLE, NewPreset(), x, and y.

◆ OnClick() [27/27]

override bool UIScriptedMenu::OnClick ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

Definition at line 34 of file scriptconsolerenamepresetdialog.c.

35 {
36 super.OnClick(w, x, y, button);
37
38 if (w.GetUserID() == IDC_OK)
39 {
41 if ( ui_menu != NULL )
42 {
43 ScriptConsole scripted_console = ScriptConsole.Cast( ui_menu );
44 scripted_console.RenamePreset( m_Editbox.GetText() );
45 Close();
46 return true;
47 }
48 }
49 else if (w.GetUserID() == IDC_CANCEL)
50 {
51 Close();
52 return true;
53 }
54
55 return false;
56 }

References Close(), UIManager::FindMenu(), GetGame(), CGame::GetUIManager(), IDC_CANCEL, IDC_OK, MENU_SCRIPTCONSOLE, RenamePreset(), x, and y.

◆ OnClick_Continue()

protected void UIScriptedMenu::OnClick_Continue ( )
inlineprivate

Definition at line 197 of file ingamemenu.c.

198 {
200 }

References ScriptCallQueue::Call(), CALL_CATEGORY_GUI, Continue(), CGame::GetCallQueue(), and GetGame().

Referenced by OnClick().

◆ OnClick_Exit()

protected void UIScriptedMenu::OnClick_Exit ( )
inlineprivate

Definition at line 241 of file ingamemenu.c.

242 {
244 GetGame().GetCallQueue(CALL_CATEGORY_GUI).Call(GetGame().GetMission().CreateLogoutMenu, this);
245
246 //GetGame().GetUIManager().ShowDialog("EXIT", "Are you sure you want to exit?", IDC_INT_EXIT, DBT_YESNO, DBB_YES, DMT_QUESTION, NULL);
247 }
proto native void LogoutRequestTime()
Logout methods.

References ScriptCallQueue::Call(), CALL_CATEGORY_GUI, CGame::GetCallQueue(), GetGame(), and CGame::LogoutRequestTime().

Referenced by OnClick().

◆ OnClick_Options()

protected void UIScriptedMenu::OnClick_Options ( )
inlineprivate

Definition at line 236 of file ingamemenu.c.

237 {
238 EnterScriptedMenu(MENU_OPTIONS);
239 }

References MENU_OPTIONS.

Referenced by OnClick().

◆ OnClick_Respawn()

protected void UIScriptedMenu::OnClick_Respawn ( )
inlineprivate

Definition at line 214 of file ingamemenu.c.

215 {
216 Man player = GetGame().GetPlayer();
217
218 if (player && player.IsUnconscious())
219 {
220 GetGame().GetUIManager().ShowDialog("#main_menu_respawn", "#main_menu_respawn_question", IDC_INT_RETRY, DBT_YESNO, DBB_YES, DMT_QUESTION, this);
221 }
222 else
223 {
224 if (GetGame().GetMission().GetRespawnModeClient() == GameConstants.RESPAWN_MODE_CUSTOM)
225 {
226 //GetGame().GetUIManager().ShowDialog("Respawning", "Respawn as custom?", IDC_INT_RESPAWN, DBT_YESNOCANCEL, DBB_YES, DMT_QUESTION, this);
227 GetGame().GetCallQueue(CALL_CATEGORY_GUI).Call(GetGame().GetUIManager().EnterScriptedMenu,MENU_RESPAWN_DIALOGUE,this);
228 }
229 else
230 {
231 GameRespawn(true);
232 }
233 }
234 }

References ScriptCallQueue::Call(), CALL_CATEGORY_GUI, GameRespawn(), CGame::GetCallQueue(), GetGame(), CGame::GetPlayer(), CGame::GetUIManager(), IDC_INT_RETRY, MENU_RESPAWN_DIALOGUE, GameConstants::RESPAWN_MODE_CUSTOM, and UIManager::ShowDialog().

Referenced by OnClick(), and OnClick_Restart().

◆ OnClick_Restart()

protected void UIScriptedMenu::OnClick_Restart ( )
inlineprivate

Definition at line 202 of file ingamemenu.c.

203 {
204 if (!GetGame().IsMultiplayer())
205 {
207 }
208 else
209 {
211 }
212 }

References ScriptCallQueue::Call(), CALL_CATEGORY_GUI, CGame::GetCallQueue(), GetGame(), and OnClick_Respawn().

Referenced by OnClick().

◆ OnController() [1/2]

override bool UIScriptedMenu::OnController ( Widget  w,
int  control,
int  value 
)
inlineprivate

Definition at line 215 of file gesturesmenu.c.

216 {
217 super.OnController( w, control, value );
218
219 RadialMenu.GetInstance().SetControlType( RadialMenuControlType.CONTROLLER );
220
221 return false;
222 }
RadialMenuControlType
Definition: radialmenu.c:2

References RadialMenu().

◆ OnController() [2/2]

override bool UIScriptedMenu::OnController ( Widget  w,
int  control,
int  value 
)
inlineprivate

Definition at line 213 of file radialquickbarmenu.c.

214 {
215 super.OnController( w, control, value );
216
217 RadialMenu.GetInstance().SetControlType( RadialMenuControlType.CONTROLLER );
218
219 return false;
220 }

References RadialMenu().

◆ OnControllerDeselect() [1/2]

void UIScriptedMenu::OnControllerDeselect ( Widget  w)
inlineprivate

Definition at line 501 of file gesturesmenu.c.

502 {
503 UnmarkSelected( w );
504 }
protected void UnmarkSelected(Widget w)
Definition: gesturesmenu.c:549

◆ OnControllerDeselect() [2/2]

void UIScriptedMenu::OnControllerDeselect ( Widget  w)
inlineprivate

Definition at line 548 of file radialquickbarmenu.c.

549 {
550 UnmarkSelected( w );
551 }

◆ OnControllerExecute()

void UIScriptedMenu::OnControllerExecute ( Widget  w)
inlineprivate

Definition at line 506 of file gesturesmenu.c.

507 {
508 }

◆ OnControllerPressBack() [1/2]

void UIScriptedMenu::OnControllerPressBack ( Widget  w)
inlineprivate

Definition at line 522 of file gesturesmenu.c.

523 {
524 BackOneLevel();
525 }
protected void BackOneLevel()
Definition: gesturesmenu.c:622

◆ OnControllerPressBack() [2/2]

void UIScriptedMenu::OnControllerPressBack ( Widget  w)
inlineprivate

Definition at line 558 of file radialquickbarmenu.c.

559 {
560 //SecondaryAction( w );
561 BackOneLevel();
562 }

◆ OnControllerPressSelect() [1/2]

void UIScriptedMenu::OnControllerPressSelect ( Widget  w)
inlineprivate

Definition at line 510 of file gesturesmenu.c.

511 {
512 if (instance.m_IsCategorySelected)
513 {
515 }
516 else
517 {
519 }
520 }
protected void ExecuteSelectedItem()
Definition: gesturesmenu.c:599
protected void ExecuteSelectedCategory(Widget w)
Definition: gesturesmenu.c:570

◆ OnControllerPressSelect() [2/2]

void UIScriptedMenu::OnControllerPressSelect ( Widget  w)
inlineprivate

Definition at line 553 of file radialquickbarmenu.c.

554 {
555 PrimaryAction( w );
556 }
protected void PrimaryAction(Widget w)

◆ OnControllerSelect() [1/2]

void UIScriptedMenu::OnControllerSelect ( Widget  w)
inlineprivate

Definition at line 496 of file gesturesmenu.c.

497 {
498 MarkSelected( w );
499 }

◆ OnControllerSelect() [2/2]

void UIScriptedMenu::OnControllerSelect ( Widget  w)
inlineprivate

Definition at line 543 of file radialquickbarmenu.c.

544 {
545 MarkSelected( w );
546 }

◆ OnControlsChanged() [1/2]

void UIScriptedMenu::OnControlsChanged ( RadialMenuControlType  type)
inlineprivate

Definition at line 457 of file gesturesmenu.c.

458 {
459 }

◆ OnControlsChanged() [2/2]

void UIScriptedMenu::OnControlsChanged ( RadialMenuControlType  type)
inlineprivate

Definition at line 511 of file radialquickbarmenu.c.

512 {
513 }

◆ OnDoubleClick() [1/2]

override bool UIScriptedMenu::OnDoubleClick ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

Definition at line 487 of file sceneeditormenu.c.

488 {
490 {
492
493 //float distance = m_SpawnDistanceEditBox.GetText().ToFloat();
495 {
497 return true;
498 }
499 else
500 {
501 float health = -1;
502 int quantity = -1;
503 if(GetCurrentItemIndex() != -1)
504 {
506 quantity = m_ConfigDebugProfile.GetItemQuantity( GetCurrentPresetName(), GetCurrentItemIndex() );
507 }
508 m_Developer.SpawnEntityInInventory( PlayerBase.Cast( GetGame().GetPlayer() ), m_SelectedObject, health, quantity);
509 return true;
510 }
511 }
512 return false;
513 }
void SetPreset(bool clear_inventory, string preset_name)
spawn preset items into inventory

References GetCurrentItemIndex(), GetCurrentPresetName(), GetGame(), GetPlayer(), m_SelectedObject, SaveProfileSpawnDistance(), and SetPreset().

◆ OnDoubleClick() [2/2]

override bool UIScriptedMenu::OnDoubleClick ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

Definition at line 1531 of file scriptconsole.c.

1532 {
1533 super.OnDoubleClick(w, x, y, button);
1534
1535 int i;
1536 int objects_row_index;
1537 PlayerBase player = PlayerBase.Cast( GetGame().GetPlayer() );
1538
1539 if ( w == m_ObjectsTextListbox )
1540 {
1541 //select item
1542 m_PresetItemsTextListbox.SelectRow(-1);
1545 m_SelectedObjectText.SetText( "Object : " + GetCurrentObjectName() );
1546
1550
1551 //spawn item
1553
1554 objects_row_index = m_ObjectsTextListbox.GetSelectedRow();
1555
1557 vector rayEnd = rayStart + GetGame().GetCurrentCameraDirection() * 1.5;
1558 vector hitPos;
1559 vector hitNormal;
1560 int hitComponentIndex;
1561 set<Object> hitObjects = new set<Object>;
1562 DayZPhysics.RaycastRV(rayStart, rayEnd, hitPos, hitNormal, hitComponentIndex, hitObjects, NULL, player);
1563
1564 Object target = NULL;
1565 if( hitObjects.Count() )
1566 target = hitObjects.Get(0);
1567
1568 if ( m_SelectedObject != "" )
1569 {
1570 float distance = m_SpawnDistanceEditBox.GetText().ToFloat();
1571
1572 if ( button == 0 ) //LMB
1573 {
1574 m_Developer.SpawnEntityOnCursorDir(player, m_SelectedObject, 100, distance);
1575 }
1576 else if ( button == 1 ) //RMB
1577 {
1578 if ( GetGame().IsMultiplayer() )
1579 {
1580 m_Developer.SpawnEntityInInventory(player, m_SelectedObject, -1, -1);
1581 }
1582 else
1583 {
1584 EntityAI spawned_entity = m_Developer.SpawnEntityOnCursorDir(player, m_SelectedObject, -1, distance );
1585 player.LocalTakeEntityToHands(spawned_entity);
1586 }
1587 }
1588 }
1589 }
1590
1591 if ( w == m_DebugMapWidget )
1592 {
1593 vector screen_to_map = m_DebugMapWidget.ScreenToMap(Vector(x,y, 0));
1594 float pos_y_a = GetGame().SurfaceY(screen_to_map[0], screen_to_map[2]);
1595 float pos_y_b = GetGame().SurfaceRoadY(screen_to_map[0], screen_to_map[2]);
1596 float pos_y = Math.Max(pos_y_a, pos_y_b);
1597 screen_to_map[1] = pos_y;
1598 m_Developer.Teleport(player, screen_to_map);
1599 return true;
1600 }
1601
1602
1603 return false;
1604 }
proto native float SurfaceRoadY(float x, float z)
proto native vector ScreenToMap(vector screenPos)
static proto float Max(float x, float y)
Returns bigger of two given values.

References CGame::GetCurrentCameraDirection(), CGame::GetCurrentCameraPosition(), GetCurrentObjectName(), GetGame(), GetPlayer(), HideItemButtons(), m_SelectedObject, m_SelectedObject, Math::Max(), DayZPhysics::RaycastRV(), SaveProfileSpawnDistance(), ShowItemTransferButtons(), CGame::SurfaceRoadY(), CGame::SurfaceY(), Vector(), x, and y.

◆ OnFocus() [1/10]

override bool UIScriptedMenu::OnFocus ( Widget  w,
int  x,
int  y 
)
inlineprivate

Definition at line 861 of file cameratoolsmenu.c.

862 {
863 if ( IsFocusable( w ) )
864 {
865 ColorRed( w );
866 return true;
867 }
868 return false;
869 }
bool IsFocusable(Widget w)
void ColorRed(Widget w)

References IsFocusable().

Referenced by ScriptedWidgetEventHandler::OnMouseEnter(), OptionSelectorBase::OnMouseEnter(), ScriptedWidgetEventHandler::OnMouseLeave(), and OptionSelectorBase::OnMouseLeave().

◆ OnFocus() [2/10]

override bool UIScriptedMenu::OnFocus ( Widget  w,
int  x,
int  y 
)
inlineprivate

Definition at line 572 of file ingamemenuxbox.c.

573 {
574 if( IsFocusable( w ) )
575 {
576 ColorHighlight( w );
577 return true;
578 }
579 return false;
580 }
protected void ColorHighlight(Widget w)
Definition: ingamemenu.c:370

References ColorHighlight(), and IsFocusable().

◆ OnFocus() [3/10]

override bool UIScriptedMenu::OnFocus ( Widget  w,
int  x,
int  y 
)
inlineprivate

Definition at line 418 of file charactercreationmenu.c.

419 {
420 string tooltip_header = "";
421 string tooltip_text = "";
422 if( IsFocusable( w ) )
423 {
424 ColorHighlight( w );
425 switch (w.GetUserID())//hack-ish solution, implement generic tooltip handler! Plus console menu does not use button widgets?
426 {
427 case TOOLTIP_ID_APPLY:
428 tooltip_header = "#layout_main_menu_rename";
429 tooltip_text = "#layout_character_creation_apply_tooltip";
430 break;
431
432 case TOOLTIP_ID_SAVE:
433 tooltip_header = "#layout_character_creation_save_character";
434 tooltip_text = "#layout_character_creation_save_tooltip";
435 break;
436 }
437 SetTooltipTexts(w, tooltip_header, tooltip_text);
438 return true;
439 }
441 return false;
442 }
void SetTooltipTexts(Widget w, string header="", string desc="")

References ColorHighlight(), IsFocusable(), SetTooltipTexts(), TOOLTIP_ID_APPLY, and TOOLTIP_ID_SAVE.

◆ OnFocus() [4/10]

override bool UIScriptedMenu::OnFocus ( Widget  w,
int  x,
int  y 
)
inlineprivate

Definition at line 365 of file keybindingsmenu.c.

366 {
367 if( w && IsFocusable( w ) )
368 {
369 ColorRed( w );
370 return true;
371 }
372 return false;
373 }

References ColorRed(), and IsFocusable().

◆ OnFocus() [5/10]

override bool UIScriptedMenu::OnFocus ( Widget  w,
int  x,
int  y 
)
inlineprivate

Definition at line 273 of file mainmenu.c.

274 {
275 if( IsFocusable( w ) )
276 {
277 ColorHighlight( w );
278 return true;
279 }
280 return false;
281 }

References ColorHighlight(), and IsFocusable().

◆ OnFocus() [6/10]

override bool UIScriptedMenu::OnFocus ( Widget  w,
int  x,
int  y 
)
inlineprivate

Definition at line 188 of file mainmenuconsoles.c.

189 {
190 ColorHighlight( w );
191 return true;
192 }

References ColorHighlight().

◆ OnFocus() [7/10]

override bool UIScriptedMenu::OnFocus ( Widget  w,
int  x,
int  y 
)
inlineprivate

Definition at line 444 of file tutorialsmenu.c.

445 {
446 if( IsFocusable( w ) )
447 {
448 ColorHighlight( w );
449 return true;
450 }
451 return false;
452 }

References ColorHighlight(), and IsFocusable().

◆ OnFocus() [8/10]

override bool UIScriptedMenu::OnFocus ( Widget  w,
int  x,
int  y 
)
inlineprivate

Definition at line 542 of file optionsmenu.c.

543 {
544 if ( w && IsFocusable( w ) )
545 {
546 ColorHighlight( w );
547 return true;
548 }
549 else if ( y == 1 )
550 {
551 SliderFocus();
552 }
553 else
554 {
555 ToggleFocus();
556 }
557
558 return false;
559 }
void SliderFocus()
Definition: optionsmenu.c:429

References ColorHighlight(), IsFocusable(), SliderFocus(), ToggleFocus(), and y.

◆ OnFocus() [9/10]

override bool UIScriptedMenu::OnFocus ( Widget  w,
int  x,
int  y 
)
inlineprivate

Definition at line 357 of file serverbrowsermenunew.c.

358 {
359 if ( IsFocusable( w ) )
360 {
361 ColorHighlight( w );
362 return true;
363 }
364 return false;
365 }

References ColorHighlight(), and IsFocusable().

◆ OnFocus() [10/10]

override bool UIScriptedMenu::OnFocus ( Widget  w,
int  x,
int  y 
)
inlineprivate

Definition at line 101 of file respawndialogue.c.

102 {
103 string tooltip_header = "";
104 string tooltip_text = "";
105 if( IsFocusable( w ) )
106 {
107 ColorHighlight( w );
108 switch (w.GetUserID())//hack-ish solution, implement generic tooltip handler!
109 {
111 tooltip_header = "#main_menu_respawn_random";
112 tooltip_text = "#main_menu_respawn_random_tooltip";
113 break;
114
116 tooltip_header = "#main_menu_respawn_custom";
117 tooltip_text = "#main_menu_respawn_custom_tooltip";
118 break;
119
120 /*default:
121 tooltip_header = "boop";
122 tooltip_text = "the snoot";
123 break;*/
124 }
125 SetTooltipTexts(w, tooltip_header, tooltip_text);
126 return true;
127 }
128 SetTooltipTexts(w, tooltip_header, tooltip_text);
129 return false;
130 }

References ColorHighlight(), ID_RESPAWN_CUSTOM, ID_RESPAWN_RANDOM, IsFocusable(), and SetTooltipTexts().

◆ OnFocusLost() [1/10]

override bool UIScriptedMenu::OnFocusLost ( Widget  w,
int  x,
int  y 
)
inlineprivate

Definition at line 871 of file cameratoolsmenu.c.

872 {
873 if ( IsFocusable( w ) )
874 {
875 ColorWhite( w, null );
876 return true;
877 }
878 return false;
879 }

References IsFocusable().

◆ OnFocusLost() [2/10]

override bool UIScriptedMenu::OnFocusLost ( Widget  w,
int  x,
int  y 
)
inlineprivate

Definition at line 582 of file ingamemenuxbox.c.

583 {
584 if( IsFocusable( w ) )
585 {
586 ColorNormal( w );
587 return true;
588 }
589 return false;
590 }

References ColorNormal(), and IsFocusable().

◆ OnFocusLost() [3/10]

override bool UIScriptedMenu::OnFocusLost ( Widget  w,
int  x,
int  y 
)
inlineprivate

Definition at line 444 of file charactercreationmenu.c.

445 {
446 if( IsFocusable( w ) )
447 {
448 ColorNormal( w );
449 return true;
450 }
451 return false;
452 }

References ColorNormal(), and IsFocusable().

◆ OnFocusLost() [4/10]

override bool UIScriptedMenu::OnFocusLost ( Widget  w,
int  x,
int  y 
)
inlineprivate

Definition at line 375 of file keybindingsmenu.c.

376 {
377 if( w && IsFocusable( w ) )
378 {
379 if ( (w.GetFlags() & WidgetFlags.DISABLED) || (w.GetFlags() & WidgetFlags.IGNOREPOINTER) )
380 {
381 ColorDisabled(w);
382 }
383 else
384 {
385 ColorWhite( w, null );
386 }
387 return true;
388 }
389 return false;
390 }

References ColorDisabled(), ColorWhite(), and IsFocusable().

◆ OnFocusLost() [5/10]

override bool UIScriptedMenu::OnFocusLost ( Widget  w,
int  x,
int  y 
)
inlineprivate

Definition at line 283 of file mainmenu.c.

284 {
285 if( IsFocusable( w ) )
286 {
287 ColorNormal( w );
288 return true;
289 }
290 return false;
291 }

References ColorNormal(), and IsFocusable().

◆ OnFocusLost() [6/10]

override bool UIScriptedMenu::OnFocusLost ( Widget  w,
int  x,
int  y 
)
inlineprivate

Definition at line 194 of file mainmenuconsoles.c.

195 {
196 ColorNormal( w );
197 return true;
198 }

References ColorNormal().

◆ OnFocusLost() [7/10]

override bool UIScriptedMenu::OnFocusLost ( Widget  w,
int  x,
int  y 
)
inlineprivate

Definition at line 454 of file tutorialsmenu.c.

455 {
456 if( IsFocusable( w ) )
457 {
458 ColorNormal( w );
459 return true;
460 }
461 return false;
462 }

References ColorNormal(), and IsFocusable().

◆ OnFocusLost() [8/10]

override bool UIScriptedMenu::OnFocusLost ( Widget  w,
int  x,
int  y 
)
inlineprivate

Definition at line 561 of file optionsmenu.c.

562 {
563 if ( w && IsFocusable( w ) )
564 {
565 ColorNormal( w );
566 return true;
567 }
568 return false;
569 }

References ColorNormal(), and IsFocusable().

◆ OnFocusLost() [9/10]

override bool UIScriptedMenu::OnFocusLost ( Widget  w,
int  x,
int  y 
)
inlineprivate

Definition at line 367 of file serverbrowsermenunew.c.

368 {
369 if ( IsFocusable( w ) )
370 {
371 ColorNormal( w );
372 return true;
373 }
374 return false;
375 }

References ColorNormal(), and IsFocusable().

◆ OnFocusLost() [10/10]

override bool UIScriptedMenu::OnFocusLost ( Widget  w,
int  x,
int  y 
)
inlineprivate

Definition at line 132 of file respawndialogue.c.

133 {
134 if( IsFocusable( w ) )
135 {
136 ColorNormal( w );
137 return true;
138 }
139 return false;
140 }

References ColorNormal(), and IsFocusable().

◆ OnHide() [1/9]

override void UIScriptedMenu::OnHide ( )
inlineprivate

Definition at line 97 of file cameratoolsmenu.c.

98 {
99 super.OnHide();
100 if ( !m_IsPlaying && GetGame() && GetGame().GetMission() && GetGame().GetUIManager())
101 {
104 }
105 }
proto native bool ShowCursor(bool visible)
protected bool m_IsPlaying

References GetGame(), CGame::GetMission(), CGame::GetUIManager(), m_IsPlaying, Mission::RemoveActiveInputExcludes(), and UIManager::ShowCursor().

Referenced by PluginBase::CursorHide(), and PluginBase::FreeCameraControlEnable().

◆ OnHide() [2/9]

override void UIScriptedMenu::OnHide ( )
inlineprivate

Definition at line 59 of file chatinputmenu.c.

60 {
61 super.OnHide();
63
64 if (!GetGame().GetMission().IsVoNActive())
66 }
void HideChat()
Definition: gameplay.c:766
void HideVoiceLevelWidgets()
Definition: gameplay.c:769

References GetGame(), CGame::GetMission(), Mission::HideChat(), and Mission::HideVoiceLevelWidgets().

◆ OnHide() [3/9]

override void UIScriptedMenu::OnHide ( )
inlineprivate

Definition at line 601 of file charactercreationmenu.c.

602 {
603 //super.OnHide();
604 }

◆ OnHide() [4/9]

override void UIScriptedMenu::OnHide ( )
inlineprivate

Definition at line 357 of file mainmenu.c.

358 {
359 GetDayZGame().GetBacklit().MainMenu_OnHide();
360 //super.OnHide();
361 }

References GetDayZGame().

◆ OnHide() [5/9]

override void UIScriptedMenu::OnHide ( )
inlineprivate

Definition at line 252 of file mainmenuconsoles.c.

253 {
254 GetDayZGame().GetBacklit().MainMenu_OnHide();
255 }

References GetDayZGame().

◆ OnHide() [6/9]

override void UIScriptedMenu::OnHide ( )
inlineprivate

Definition at line 49 of file mainmenuvideo.c.

50 {
51 super.OnHide();
53 }
void ShowUICursor(bool visible)
Definition: uimanager.c:246

References GetGame(), CGame::GetUIManager(), and UIManager::ShowUICursor().

◆ OnHide() [7/9]

override void UIScriptedMenu::OnHide ( )
inlineprivate

Definition at line 145 of file radialquickbarmenu.c.

146 {
147 super.OnHide();
148
149 //reset item to assign
150 RadialQuickbarMenu.SetItemToAssign( NULL );
151 }

◆ OnHide() [8/9]

override void UIScriptedMenu::OnHide ( )
inlineprivate

Definition at line 805 of file sceneeditormenu.c.

806 {
808 }

References GetGame(), CGame::GetMission(), and Mission::RemoveActiveInputExcludes().

◆ OnHide() [9/9]

override void UIScriptedMenu::OnHide ( )
inlineprivate

Definition at line 72 of file titlescreenmenu.c.

73 {
74 layoutRoot.FindAnyWidget("notification_root").Show(false);
75 }

◆ OnInputDeviceChanged() [1/7]

protected void UIScriptedMenu::OnInputDeviceChanged ( EInputDeviceType  pInputDeviceType)
inlineprivate

Definition at line 69 of file controlsxboxnew.c.

70 {
71 switch (pInputDeviceType)
72 {
73 case EInputDeviceType.CONTROLLER:
75 layoutRoot.FindAnyWidget("toolbar_bg").Show(true);
76 break;
77
78 default:
79 if (GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer())
80 {
81 layoutRoot.FindAnyWidget("toolbar_bg").Show(false);
82 }
83 break;
84 }
85 }
EInputDeviceType
Definition: input.c:3

References GetGame(), GetInput(), and UpdateControlsElements().

Referenced by Init().

◆ OnInputDeviceChanged() [2/7]

protected void UIScriptedMenu::OnInputDeviceChanged ( EInputDeviceType  pInputDeviceType)
inlineprivate

Definition at line 62 of file ingamemenuxbox.c.

63 {
64 switch (pInputDeviceType)
65 {
66 case EInputDeviceType.CONTROLLER:
68 layoutRoot.FindAnyWidget("toolbar_bg").Show(true);
69 break;
70
71 default:
72 if (GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer())
73 {
74 layoutRoot.FindAnyWidget("toolbar_bg").Show(false);
75 }
76 break;
77 }
78 }

References GetGame(), GetInput(), and UpdateControlsElements().

◆ OnInputDeviceChanged() [3/7]

protected void UIScriptedMenu::OnInputDeviceChanged ( EInputDeviceType  pInputDeviceType)
inlineprivate

Definition at line 60 of file charactercreationmenu.c.

61 {
62 switch (pInputDeviceType)
63 {
64 case EInputDeviceType.CONTROLLER:
65 #ifdef PLATFORM_CONSOLE
67 layoutRoot.FindAnyWidget("toolbar_bg").Show(true);
68 #endif
69 break;
70
71 default:
72 #ifdef PLATFORM_CONSOLE
73 if (GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer())
74 {
75 layoutRoot.FindAnyWidget("toolbar_bg").Show(false);
76 }
77 #endif
78 break;
79 }
80 }

References GetGame(), GetInput(), and UpdateControlsElements().

◆ OnInputDeviceChanged() [4/7]

protected void UIScriptedMenu::OnInputDeviceChanged ( EInputDeviceType  pInputDeviceType)
inlineprivate

Definition at line 100 of file mainmenuconsoles.c.

101 {
102 switch (pInputDeviceType)
103 {
104 case EInputDeviceType.CONTROLLER:
106 layoutRoot.FindAnyWidget("toolbar_bg").Show(true);
107 break;
108
109 default:
110 if (GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer())
111 {
112 layoutRoot.FindAnyWidget("toolbar_bg").Show(false);
113 }
114 break;
115 }
116 }

References GetGame(), GetInput(), and UpdateControlsElements().

◆ OnInputDeviceChanged() [5/7]

protected void UIScriptedMenu::OnInputDeviceChanged ( EInputDeviceType  pInputDeviceType)
inlineprivate

Definition at line 81 of file tutorialsmenu.c.

82 {
83 switch (pInputDeviceType)
84 {
85 case EInputDeviceType.CONTROLLER:
86 #ifdef PLATFORM_CONSOLE
88 layoutRoot.FindAnyWidget("toolbar_bg").Show(true);
89 layoutRoot.FindAnyWidget("play_panel_root").Show(false);
90 #endif
91 break;
92
93 default:
94 #ifdef PLATFORM_CONSOLE
95 if (GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer())
96 {
97 layoutRoot.FindAnyWidget("toolbar_bg").Show(false);
98 layoutRoot.FindAnyWidget("play_panel_root").Show(true);
99 }
100 #endif
101 break;
102 }
103 }

References GetGame(), GetInput(), and UpdateControlsElements().

◆ OnInputDeviceChanged() [6/7]

protected void UIScriptedMenu::OnInputDeviceChanged ( EInputDeviceType  pInputDeviceType)
inlineprivate

Definition at line 107 of file optionsmenu.c.

108 {
109 }

◆ OnInputDeviceChanged() [7/7]

protected void UIScriptedMenu::OnInputDeviceChanged ( EInputDeviceType  pInputDeviceType)
inlineprivate

Definition at line 125 of file serverbrowsermenunew.c.

126 {
127 switch (pInputDeviceType)
128 {
129 case EInputDeviceType.CONTROLLER:
130 #ifdef PLATFORM_CONSOLE
132 layoutRoot.FindAnyWidget("toolbar_bg").Show(true);
133 layoutRoot.FindAnyWidget("ConsoleControls").Show(true);
134 #endif
135 break;
136
137 default:
138 #ifdef PLATFORM_CONSOLE
139 if (GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer())
140 {
141 layoutRoot.FindAnyWidget("toolbar_bg").Show(false);
142 layoutRoot.FindAnyWidget("ConsoleControls").Show(false);
143 }
144 #endif
145 break;
146 }
147 }

References GetGame(), GetInput(), and UpdateControlsElements().

◆ OnInputPresetChanged() [1/9]

protected void UIScriptedMenu::OnInputPresetChanged ( )
inlineprivate

Definition at line 62 of file controlsxboxnew.c.

63 {
64 #ifdef PLATFORM_CONSOLE
66 #endif
67 }

References UpdateControlsElements().

◆ OnInputPresetChanged() [2/9]

protected void UIScriptedMenu::OnInputPresetChanged ( )
inlineprivate

Definition at line 169 of file gesturesmenu.c.

170 {
171 #ifdef PLATFORM_CONSOLE
173 #endif
174 }

◆ OnInputPresetChanged() [3/9]

protected void UIScriptedMenu::OnInputPresetChanged ( )
inlineprivate

Definition at line 55 of file ingamemenuxbox.c.

56 {
57 #ifdef PLATFORM_CONSOLE
59 #endif
60 }

References UpdateControlsElements().

◆ OnInputPresetChanged() [4/9]

protected void UIScriptedMenu::OnInputPresetChanged ( )
inlineprivate

Definition at line 53 of file charactercreationmenu.c.

54 {
55 #ifdef PLATFORM_CONSOLE
57 #endif
58 }

References UpdateControlsElements().

◆ OnInputPresetChanged() [5/9]

protected void UIScriptedMenu::OnInputPresetChanged ( )
inlineprivate

Definition at line 93 of file mainmenuconsoles.c.

94 {
95 #ifdef PLATFORM_CONSOLE
97 #endif
98 }

References UpdateControlsElements().

◆ OnInputPresetChanged() [6/9]

protected void UIScriptedMenu::OnInputPresetChanged ( )
inlineprivate

Definition at line 74 of file tutorialsmenu.c.

75 {
76 #ifdef PLATFORM_CONSOLE
78 #endif
79 }

References UpdateControlsElements().

◆ OnInputPresetChanged() [7/9]

protected void UIScriptedMenu::OnInputPresetChanged ( )
inlineprivate

Definition at line 100 of file optionsmenu.c.

101 {
102 #ifdef PLATFORM_CONSOLE
104 #endif
105 }

References UpdateControlsElements().

◆ OnInputPresetChanged() [8/9]

protected void UIScriptedMenu::OnInputPresetChanged ( )
inlineprivate

Definition at line 118 of file serverbrowsermenunew.c.

119 {
120 #ifdef PLATFORM_CONSOLE
122 #endif
123 }

References UpdateControlsElements().

◆ OnInputPresetChanged() [9/9]

protected void UIScriptedMenu::OnInputPresetChanged ( )
inlineprivate

Definition at line 153 of file radialquickbarmenu.c.

154 {
155 #ifdef PLATFORM_CONSOLE
157 #endif
158 }

◆ OnItemSelected() [1/3]

override bool UIScriptedMenu::OnItemSelected ( Widget  w,
int  x,
int  y,
int  row,
int  column,
int  oldRow,
int  oldColumn 
)
inlineprivate

Definition at line 486 of file ingamemenuxbox.c.

487 {
488 return false;
489 }

◆ OnItemSelected() [2/3]

override bool UIScriptedMenu::OnItemSelected ( Widget  w,
int  x,
int  y,
int  row,
int  column,
int  oldRow,
int  oldColumn 
)
inlineprivate

Definition at line 824 of file sceneeditormenu.c.

825 {
826
827 super.OnItemSelected(w, x, y, row, column, oldRow, oldColumn);
828
829 if ( w == m_ClWgtLbxClassesList )
830 {
831 string selected_class_name;
832 m_ClWgtLbxClassesList.GetItemText( m_ClWgtLbxClassesList.GetSelectedRow(), 0, selected_class_name );
833 m_ModuleSceneManager.SelectClassName(selected_class_name);
834
835 SceneObject obj_selected = m_ModuleSceneManager.GetSelectedSceneObject();
838 }
839 else if ( w == m_SlWgtLbxObjectsList )
840 {
841 int row_index = m_SlWgtLbxObjectsList.GetSelectedRow();
842
843 if ( m_SlObjectsList && row_index > -1 && m_SlObjectsList.Count() > 0 && m_SlObjectsList.Count() > row_index )
844 {
845 m_ModuleSceneManager.SelectObject(m_SlObjectsList.GetElement(row_index));
846 }
847 }
848
849 if( m_PopupScriptPositionManager != NULL )
850 {
851 m_PopupScriptPositionManager.OnItemSelected(w, x, y, row, column, oldRow, oldColumn);
852 }
853
854 return true;
855 }

References GetCurrentObjectName(), m_SelectedObject, x, and y.

◆ OnItemSelected() [3/3]

override bool UIScriptedMenu::OnItemSelected ( Widget  w,
int  x,
int  y,
int  row,
int  column,
int  oldRow,
int  oldColumn 
)
inlineprivate

Definition at line 1754 of file scriptconsole.c.

1755 {
1756 super.OnItemSelected(w, x, y, row, column, oldRow, oldColumn);
1757 if ( w == m_PositionsListbox )
1758 {
1759 vector position = m_ConfigDebugProfileFixed.GetPositionByName( GetCurrentPositionName() );
1760 m_TeleportX.SetText( position[0].ToString() );
1761 m_TeleportY.SetText( position[2].ToString() );
1762 return true;
1763 }
1765 {
1766 if(m_PresetsTextListbox.GetSelectedRow() != -1)
1767 {
1768 SelectPreset();
1769 return true;
1770 }
1771 }
1772 else if ( w == m_PresetItemsTextListbox )
1773 {
1774 if(m_PresetItemsTextListbox.GetSelectedRow() != -1)
1775 {
1781 }
1782 return true;
1783 }
1784 else if( w == m_ObjectsTextListbox )
1785 {
1786 SelectObject(false);
1787 return true;
1788 }
1789 else if( w == m_ConfigHierarchyTextListbox )
1790 {
1791 TextListboxWidget wgt = TextListboxWidget.Cast(w);
1792 wgt.GetItemData(row, 0,m_ConfigData);
1793
1794 if (m_ConfigData.param6 == CFG_SOUND_SETS)
1795 {
1796 m_PlaySoundsetButton.Show(true);
1797 }
1798 else
1799 {
1800 m_PlaySoundsetButton.Show(false);
1801 }
1802 return true;
1803 }
1804 return false;
1805 }

References CFG_SOUND_SETS, GetCurrentItemName(), GetCurrentPositionName(), SelectObject(), SelectPreset(), SetObject(), ShowItemButtons(), ShowItemTransferButtons(), ToString(), x, and y.

◆ OnKeyDown() [1/2]

override bool UIScriptedMenu::OnKeyDown ( Widget  w,
int  x,
int  y,
int  key 
)
inlineprivate

Definition at line 89 of file logoutmenu.c.

90 {
91 super.OnKeyDown( w, x, y, key);
92
93 switch(key)
94 {
95 // TODO: just temporary until new inputs are done
96 case KeyCode.KC_W:
97 case KeyCode.KC_S:
98 case KeyCode.KC_A:
99 case KeyCode.KC_D:
100 case KeyCode.KC_UP:
101 case KeyCode.KC_DOWN:
102 case KeyCode.KC_LEFT:
103 case KeyCode.KC_RIGHT:
104 case KeyCode.KC_ESCAPE:
105 Cancel();
106 }
107
108 return true;
109 }
KeyCode
Definition: ensystem.c:157

References Cancel(), x, and y.

Referenced by OnKeyPress().

◆ OnKeyDown() [2/2]

override bool UIScriptedMenu::OnKeyDown ( Widget  w,
int  x,
int  y,
int  key 
)
inlineprivate

Definition at line 748 of file scriptconsole.c.

749 {
750 if(key == KeyCode.KC_D && m_SelectedObject != "")
751 {
753 return true;
754 }
755 else
756 return super.OnKeyDown(w, x, y, key);
757 }

References DrawItems(), m_SelectedObject, x, and y.

◆ OnKeyPress() [1/4]

override bool UIScriptedMenu::OnKeyPress ( Widget  w,
int  x,
int  y,
int  key 
)
inlineprivate

Definition at line 890 of file cameratoolsmenu.c.

891 {
892 if (!w && key == KeyCode.KC_P )
893 {
894 if ( !m_IsPlaying )
895 {
896 Play();
897 return true;
898 }
899 else
900 {
901 Stop();
902 return true;
903 }
904 return false;
905 }
906 else if ( g_Game.IsLeftCtrlDown() && key == KeyCode.KC_S )
907 {
908 SaveKeyframe();
909 return true;
910 }
911 else if ( g_Game.IsLeftCtrlDown() && key == KeyCode.KC_Q )
912 {
913 AddKeyframe();
914 return true;
915 }
916 else if ( g_Game.IsLeftCtrlDown() && key == KeyCode.KC_E )
917 {
919 return true;
920 }
921
922 else if ( !w && g_Game.IsLeftCtrlDown() )
923 {
924 SelectActor( null );
925 return true;
926 }
927 return false;
928 }
void SelectActor(CTActor ac)

References g_Game, m_IsPlaying, Play(), and Stop().

Referenced by PluginBase::AddKeyframe(), PluginBase::DeleteKeyframe(), PluginBase::PlayPause(), and PluginBase::Save().

◆ OnKeyPress() [2/4]

override bool UIScriptedMenu::OnKeyPress ( Widget  w,
int  x,
int  y,
int  key 
)
inlineprivate

Definition at line 170 of file mapmenu.c.

171 {
172 super.OnKeyPress(w, x, y, key);
173
174 Print(key);
175
176 return false;
177 }
proto void Print(void var)
Prints content of variable to console/log.

References Print(), x, and y.

◆ OnKeyPress() [3/4]

override bool UIScriptedMenu::OnKeyPress ( Widget  w,
int  x,
int  y,
int  key 
)
inlineprivate

Definition at line 329 of file charactercreationmenu.c.

330 {
331 super.OnKeyPress( w, x, y, key );
332 return false;
333 }

References x, and y.

◆ OnKeyPress() [4/4]

override bool UIScriptedMenu::OnKeyPress ( Widget  w,
int  x,
int  y,
int  key 
)
inlineprivate

Definition at line 743 of file scriptconsole.c.

744 {
745 return super.OnKeyPress(w, x, y, key);
746 }

References x, and y.

◆ OnLoadServerModsAsync()

void UIScriptedMenu::OnLoadServerModsAsync ( GetServerModListResult  result_list)
inlineprivate

Definition at line 651 of file serverbrowsermenunew.c.

652 {
653 if ( GetSelectedTab() )
654 {
655 GetSelectedTab().OnLoadServerModsAsync( result_list.m_Id, result_list.m_Mods );
656 }
657 }
array< string > m_Mods
override void OnLoadServerModsAsync(string server_id, array< string > mods)
ServerBrowserTab GetSelectedTab()

References GetSelectedTab(), GetServerModListResult::m_Id, GetServerModListResult::m_Mods, and ServerBrowserTab::OnLoadServerModsAsync().

◆ OnLoadServersAsync()

void UIScriptedMenu::OnLoadServersAsync ( GetServersResult  result_list,
EBiosError  error,
string  response 
)
inlineprivate

Definition at line 659 of file serverbrowsermenunew.c.

660 {
661 #ifdef PLATFORM_WINDOWS
662 #ifdef PLATFORM_CONSOLE
663 GetSelectedTab().OnLoadServersAsyncConsole( result_list, error, response );
664 #else
665 GetSelectedTab().OnLoadServersAsyncPC( result_list, error, response );
666 #endif
667 #else
668 GetSelectedTab().OnLoadServersAsyncConsole( result_list, error, response );
669 #endif
670 }
override void OnLoadServersAsyncPC(ref GetServersResult result_list, EBiosError error, string response)
override void OnLoadServersAsyncConsole(GetServersResult result_list, EBiosError error, string response)

References GetSelectedTab(), ServerBrowserTab::OnLoadServersAsyncConsole(), and ServerBrowserTab::OnLoadServersAsyncPC().

◆ OnMenuRelease()

protected void UIScriptedMenu::OnMenuRelease ( )
inlineprivate

DEPRECATED.

Definition at line 670 of file gesturesmenu.c.

671 {
672 }

◆ OnModalResult() [1/6]

override bool UIScriptedMenu::OnModalResult ( Widget  w,
int  x,
int  y,
int  code,
int  result 
)
inlineprivate

Definition at line 249 of file ingamemenu.c.

250 {
251 super.OnModalResult(w, x, y, code, result);
252 if (code == IDC_INT_EXIT && result == DBB_YES)
253 {
254 if (GetGame().IsMultiplayer())
255 {
257 GetGame().GetCallQueue(CALL_CATEGORY_GUI).Call(GetGame().GetMission().CreateLogoutMenu, this);
258 }
259 else
260 {
261 // skip logout screen in singleplayer
263 }
264 g_Game.CancelLoginTimeCountdown();
265 return true;
266 }
267 else if (code == IDC_INT_EXIT && result == DBB_NO)
268 {
269 g_Game.CancelLoginTimeCountdown();
270 }
271 else if (code == IDC_INT_RETRY && result == DBB_YES && GetGame().IsMultiplayer())
272 {
273 if (GetGame().GetMission().GetRespawnModeClient() == GameConstants.RESPAWN_MODE_CUSTOM)
274 {
275 //GetGame().GetUIManager().ShowDialog("#main_menu_respawn", "#main_menu_respawn_question", IDC_INT_RESPAWN, DBT_YESNOCANCEL, DBB_YES, DMT_QUESTION, this);
276 GetGame().GetCallQueue(CALL_CATEGORY_GUI).Call(GetGame().GetUIManager().EnterScriptedMenu,MENU_RESPAWN_DIALOGUE,this);
277 }
278 else
279 {
280 GameRespawn(true);
281 }
282 return true;
283 }
284 /*else if (code == IDC_INT_RESPAWN && GetGame().IsMultiplayer())
285 {
286 if (result == DBB_YES)
287 {
288 GameRespawn(false);
289 return true;
290 }
291 else if (result == DBB_NO)
292 {
293 GameRespawn(true);
294 return true;
295 }
296 }*/
297
298 return false;
299 }

References Mission::AbortMission(), ScriptCallQueue::Call(), CALL_CATEGORY_GUI, g_Game, GameRespawn(), CGame::GetCallQueue(), GetGame(), CGame::GetMission(), IDC_INT_EXIT, IDC_INT_RETRY, CGame::LogoutRequestTime(), MENU_RESPAWN_DIALOGUE, GameConstants::RESPAWN_MODE_CUSTOM, x, and y.

◆ OnModalResult() [2/6]

override bool UIScriptedMenu::OnModalResult ( Widget  w,
int  x,
int  y,
int  code,
int  result 
)
inlineprivate

Definition at line 305 of file ingamemenuxbox.c.

306 {
307 super.OnModalResult(w, x, y, code, result);
308
309 if ( code == IDC_INT_EXIT && result == DBB_YES )
310 {
311 if (GetGame().IsMultiplayer())
312 {
314 GetGame().GetCallQueue(CALL_CATEGORY_GUI).Call(GetGame().GetMission().CreateLogoutMenu, this);
315 }
316 else
317 {
318 // skip logout screen in singleplayer
320 }
321 g_Game.CancelLoginTimeCountdown();
322
323 return true;
324
325 }
326 else if ( code == IDC_INT_EXIT && result == DBB_NO )
327 {
328 g_Game.CancelLoginTimeCountdown();
329 }
330 else if ( code == IDC_INT_RETRY )
331 {
332 if ( result == DBB_YES )
333 {
334 if ( GetGame().GetMission().GetRespawnModeClient() == GameConstants.RESPAWN_MODE_CUSTOM )
335 {
336 GetGame().GetCallQueue(CALL_CATEGORY_GUI).Call(GetGame().GetUIManager().EnterScriptedMenu,MENU_RESPAWN_DIALOGUE,this);
337 }
338 else
339 {
340 GameRetry(true);
341 return true;
342 }
343 }
344 else
345 {
347 }
348 }
349
350 return false;
351 }

References Mission::AbortMission(), ScriptCallQueue::Call(), CALL_CATEGORY_GUI, g_Game, GameRetry(), CGame::GetCallQueue(), GetGame(), CGame::GetMission(), IDC_INT_EXIT, IDC_INT_RETRY, CGame::LogoutRequestTime(), MENU_RESPAWN_DIALOGUE, GameConstants::RESPAWN_MODE_CUSTOM, UpdateMenuFocus(), x, and y.

◆ OnModalResult() [3/6]

override bool UIScriptedMenu::OnModalResult ( Widget  w,
int  x,
int  y,
int  code,
int  result 
)
inlineprivate

Definition at line 289 of file keybindingsmenu.c.

290 {
291 if( code == MODAL_ID_BACK )
292 {
293 if( result == 2 )
294 {
295 Reset();
297 }
298 return true;
299 }
300 else if (code == MODAL_ID_DEFAULT)
301 {
302 if( result == 2 )
303 {
305 }
306 return true;
307 }
308 else if (code == MODAL_ID_PRESET_CHANGE)
309 {
310 if( result == 2 )
311 {
312 Reset();
313 m_PresetSelector.PerformSetOption(m_TargetPresetIndex);
314 }
315 return true;
316 }
317
318 return false;
319 }
const int MODAL_ID_DEFAULT

References UIManager::Back(), GetGame(), CGame::GetUIManager(), PerformSetToDefaults(), and Reset().

◆ OnModalResult() [4/6]

override bool UIScriptedMenu::OnModalResult ( Widget  w,
int  x,
int  y,
int  code,
int  result 
)
inlineprivate

Definition at line 560 of file mainmenu.c.

561 {
562 if( code == IDC_MAIN_QUIT )
563 {
564 if( result == 2 )
566 if( result == 3 )
568 return true;
569 }
570 else if( code == 555 )
571 {
572 if( result == 2 )
574 }
575 return false;
576 }

References ScriptCallQueue::Call(), CALL_CATEGORY_GUI, ColorNormal(), g_Game, CGame::GetCallQueue(), GetFocus(), GetGame(), IDC_MAIN_QUIT, and OpenTutorials().

◆ OnModalResult() [5/6]

override bool UIScriptedMenu::OnModalResult ( Widget  w,
int  x,
int  y,
int  code,
int  result 
)
inlineprivate

Definition at line 377 of file mainmenuconsoles.c.

378 {
379 if ( code == IDC_MAIN_QUIT )
380 {
381 if ( result == 2 )
382 {
384 }
385
386 return true;
387 }
388 else if ( code == 555 )
389 {
390 if ( result == 2 )
391 {
393 }
394 }
395 return false;
396 }

References ScriptCallQueue::Call(), CALL_CATEGORY_GUI, g_Game, CGame::GetCallQueue(), GetGame(), IDC_MAIN_QUIT, and OpenMenuTutorials().

◆ OnModalResult() [6/6]

override bool UIScriptedMenu::OnModalResult ( Widget  w,
int  x,
int  y,
int  code,
int  result 
)
inlineprivate

Definition at line 481 of file optionsmenu.c.

482 {
483 bool ret = false;
484
485 if ( code == 1337 )
486 {
487 if ( result == 2 )
488 {
489 m_Options.Revert();
492 }
493 ret = true;
494 }
495 else if ( code == 117 )
496 {
497 g_Game.RequestRestart(IDC_MAIN_QUIT);
498 }
499 else if ( code == MODAL_ID_DEFAULT )
500 {
501 if ( result == 2 )
502 {
504 }
505 }
506 else if ( code >= DIALOG_TAB_OFFSET )
507 {
508 if ( result == 2 )
509 {
510 int id = code - DIALOG_TAB_OFFSET;
511 //m_Options.Revert();
513 m_Tabber.PerformSwitchTab(id);
514 }
515 ret = true;
516 }
517
518 m_ModalLock = ret; //prevents dialog being shown on the next update
519 return ret;
520 }

References UIManager::Back(), DIALOG_TAB_OFFSET, CGame::EndOptionsVideo(), g_Game, GetGame(), CGame::GetUIManager(), IDC_MAIN_QUIT, PerformSetToDefaults(), and ResetCurrentTab().

◆ OnMouseButtonDown() [1/5]

override bool UIScriptedMenu::OnMouseButtonDown ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

Definition at line 719 of file cameratoolsmenu.c.

720 {
721 if ( w == layoutRoot && button == MouseState.RIGHT && !m_IsPlaying )
722 {
727 SetFocus( layoutRoot );
728 return true;
729 }
730 else if ( !IsFocusable( w ) )
731 {
732 SetFocus( layoutRoot );
733 }
734 return false;
735 }
proto native void ChangeGameFocus(int add, int input_device=-1)
Change game focus number.
proto native void ResetGameFocus(int input_device=-1)
Reset game focus number (set to 0)

References Input::ChangeGameFocus(), GetGame(), CGame::GetInput(), CGame::GetMission(), CGame::GetUIManager(), IsFocusable(), m_IsPlaying, Mission::RemoveActiveInputExcludes(), Input::ResetGameFocus(), SetFocus(), and UIManager::ShowCursor().

◆ OnMouseButtonDown() [2/5]

override bool UIScriptedMenu::OnMouseButtonDown ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

Definition at line 76 of file inspectmenunew.c.

77 {
78 super.OnMouseButtonDown(w, x, y, button);
79
80 if (w == m_item_widget)
81 {
82 GetGame().GetDragQueue().Call(this, "UpdateRotation");
84 return true;
85 }
86 return false;
87 }
private ItemPreviewWidget m_item_widget
Definition: inspectmenunew.c:4
private int m_characterRotationY
Definition: inspectmenunew.c:7
private int m_characterRotationX
Definition: inspectmenunew.c:6

References g_Game, CGame::GetDragQueue(), GetGame(), x, and y.

◆ OnMouseButtonDown() [3/5]

override bool UIScriptedMenu::OnMouseButtonDown ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

Definition at line 361 of file charactercreationmenu.c.

362 {
363 #ifndef PLATFORM_CONSOLE
364 if ( w == m_CharacterRotationFrame )
365 {
366 if (m_Scene)
368 return true;
369 }
370 #endif
371 return false;
372 }
void CharacterRotationStart()

References DayZIntroScenePC::CharacterRotationStart().

◆ OnMouseButtonDown() [4/5]

override bool UIScriptedMenu::OnMouseButtonDown ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

Definition at line 143 of file mainmenu.c.

144 {
145 if ( w == m_CharacterRotationFrame )
146 {
147 if (m_ScenePC)
149 return true;
150 }
151
152 return false;
153 }

References DayZIntroScenePC::CharacterRotationStart().

◆ OnMouseButtonDown() [5/5]

override bool UIScriptedMenu::OnMouseButtonDown ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

Definition at line 902 of file scriptconsole.c.

903 {
904 super.OnMouseButtonDown(w,x,y,button);
905
906 if ( w == m_DebugMapWidget )
907 {
908 if(button == 0)
909 {
911 int mouse_x,mouse_y;
912 GetMousePos(mouse_x,mouse_y);
913 vector mouse_pos, world_pos;
914 mouse_pos[0] = mouse_x;
915 mouse_pos[1] = mouse_y;
916 world_pos = m_DebugMapWidget.ScreenToMap(mouse_pos);
917 world_pos[1] = GetGame().SurfaceY(world_pos[0], world_pos[2]);
918
919 SetMapPos(world_pos);
920 }
921 else if(button == 1)
922 {
924 }
925 }
926 return true;
927 }
void SetMapPos(vector pos)
bool m_PlayerPosRefreshBlocked
Definition: scriptconsole.c:12
proto void GetMousePos(out int x, out int y)

References GetGame(), GetMousePos(), GetPlayer(), GetWorldPosition(), SetMapPos(), CGame::SurfaceY(), x, and y.

◆ OnMouseButtonUp() [1/3]

override bool UIScriptedMenu::OnMouseButtonUp ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

Definition at line 737 of file cameratoolsmenu.c.

738 {
739 if ( w == layoutRoot && button == MouseState.LEFT )
740 {
741 SelectActor( null );
742 return true;
743 }
744 return false;
745 }

◆ OnMouseButtonUp() [2/3]

override bool UIScriptedMenu::OnMouseButtonUp ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

Definition at line 374 of file charactercreationmenu.c.

375 {
376 #ifndef PLATFORM_CONSOLE
377 if (m_Scene)
379 #endif
380 return false;
381 }
void CharacterRotationStop()

References DayZIntroScenePC::CharacterRotationStop().

◆ OnMouseButtonUp() [3/3]

override bool UIScriptedMenu::OnMouseButtonUp ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

Definition at line 155 of file mainmenu.c.

156 {
157 if (m_ScenePC)
159 return false;
160 }

References DayZIntroScenePC::CharacterRotationStop().

◆ OnMouseDeselect() [1/2]

void UIScriptedMenu::OnMouseDeselect ( Widget  w)
inlineprivate

Definition at line 467 of file gesturesmenu.c.

468 {
469 UnmarkSelected( w );
470 }

◆ OnMouseDeselect() [2/2]

void UIScriptedMenu::OnMouseDeselect ( Widget  w)
inlineprivate

Definition at line 521 of file radialquickbarmenu.c.

522 {
523 UnmarkSelected( w );
524 }

◆ OnMouseEnter() [1/13]

override bool UIScriptedMenu::OnMouseEnter ( Widget  w,
int  x,
int  y 
)
inlineprivate

Definition at line 849 of file cameratoolsmenu.c.

850 {
851 if ( w == m_CameraEditbox)
852 m_CameraEditbox.SetText("");
853 return true;
854 }

Referenced by ScriptedWidgetEventHandler::OnMouseEnter(), and OptionSelectorBase::OnMouseEnter().

◆ OnMouseEnter() [2/13]

override bool UIScriptedMenu::OnMouseEnter ( Widget  w,
int  x,
int  y 
)
inlineprivate

Definition at line 224 of file gesturesmenu.c.

225 {
226 super.OnMouseEnter( w, x, y );
227
228 RadialMenu.GetInstance().SetControlType( RadialMenuControlType.MOUSE );
229
230 return false;
231 }

References RadialMenu(), x, and y.

◆ OnMouseEnter() [3/13]

override bool UIScriptedMenu::OnMouseEnter ( Widget  w,
int  x,
int  y 
)
inlineprivate

Definition at line 144 of file ingamemenu.c.

145 {
147 return true;
148 }

References ColorHighlight().

◆ OnMouseEnter() [4/13]

override bool UIScriptedMenu::OnMouseEnter ( Widget  w,
int  x,
int  y 
)
inlineprivate

Definition at line 552 of file ingamemenuxbox.c.

553 {
554 if( IsFocusable( w ) )
555 {
556 ColorHighlight( w );
557 return true;
558 }
559 return false;
560 }

References ColorHighlight(), and IsFocusable().

◆ OnMouseEnter() [5/13]

override bool UIScriptedMenu::OnMouseEnter ( Widget  w,
int  x,
int  y 
)
inlineprivate

Definition at line 383 of file charactercreationmenu.c.

384 {
385 string tooltip_header = "";
386 string tooltip_text = "";
387 ColorHighlight( w );
388 //Print(w.GetName());
389 switch (w.GetUserID())//hack-ish solution, implement generic tooltip handler!
390 {
391 case TOOLTIP_ID_APPLY:
392 tooltip_header = "#layout_main_menu_rename";
393 tooltip_text = "#layout_character_creation_apply_tooltip";
394 break;
395
396 case TOOLTIP_ID_SAVE:
397 tooltip_header = "#layout_character_creation_save_character";
398 tooltip_text = "#layout_character_creation_save_tooltip";
399 break;
400
401 /*default:
402 tooltip_header = "boop";
403 tooltip_text = "the snoot";
404 break;*/
405 }
406 SetTooltipTexts(w, tooltip_header, tooltip_text);
407 return true;
408 }

References ColorHighlight(), SetTooltipTexts(), TOOLTIP_ID_APPLY, and TOOLTIP_ID_SAVE.

◆ OnMouseEnter() [6/13]

override bool UIScriptedMenu::OnMouseEnter ( Widget  w,
int  x,
int  y 
)
inlineprivate

Definition at line 333 of file keybindingsmenu.c.

334 {
335 if( w && IsFocusable( w ) )
336 {
337 ColorRed( w );
338 return true;
339 }
340 return false;
341 }

References ColorRed(), and IsFocusable().

◆ OnMouseEnter() [7/13]

override bool UIScriptedMenu::OnMouseEnter ( Widget  w,
int  x,
int  y 
)
inlineprivate

Definition at line 229 of file mainmenu.c.

230 {
231 if( w == m_Play )
232 {
233 string ip = "";
234 string name = "";
235 int port = 0;
236
237 if(m_ScenePC && !m_ScenePC.GetIntroCharacter().IsDefaultCharacter())
238 {
239 int charID = m_ScenePC.GetIntroCharacter().GetCharacterID();
240 m_ScenePC.GetIntroCharacter().GetLastPlayedServer(charID, ip, name, port);
241
242 m_LastPlayedTooltipName.SetText( "#server_details_name " + name );
243 m_LastPlayedTooltipIP.SetText( "#main_menu_IP " + ip );
244 m_LastPlayedTooltipPort.SetText( "#main_menu_port " + port );
245
247 }
248 }
249
250 if( IsFocusable( w ) )
251 {
252 ColorHighlight( w );
253 return true;
254 }
255 return false;
256 }

References ColorHighlight(), DayZIntroScene::GetIntroCharacter(), IsFocusable(), and name.

◆ OnMouseEnter() [8/13]

override bool UIScriptedMenu::OnMouseEnter ( Widget  w,
int  x,
int  y 
)
inlineprivate

Definition at line 424 of file tutorialsmenu.c.

425 {
426 if( IsFocusable( w ) )
427 {
428 ColorHighlight( w );
429 return true;
430 }
431 return false;
432 }

References ColorHighlight(), and IsFocusable().

◆ OnMouseEnter() [9/13]

override bool UIScriptedMenu::OnMouseEnter ( Widget  w,
int  x,
int  y 
)
inlineprivate

Definition at line 522 of file optionsmenu.c.

523 {
524 if ( w && IsFocusable( w ) )
525 {
526 ColorHighlight( w );
527 return true;
528 }
529 return false;
530 }

References ColorHighlight(), and IsFocusable().

◆ OnMouseEnter() [10/13]

override bool UIScriptedMenu::OnMouseEnter ( Widget  w,
int  x,
int  y 
)
inlineprivate

Definition at line 172 of file serverbrowsermenunew.c.

173 {
174 if ( IsFocusable( w ) )
175 {
176 ColorHighlight( w );
177 return true;
178 }
179 return false;
180 }

References ColorHighlight(), and IsFocusable().

◆ OnMouseEnter() [11/13]

override bool UIScriptedMenu::OnMouseEnter ( Widget  w,
int  x,
int  y 
)
inlineprivate

Definition at line 222 of file radialquickbarmenu.c.

223 {
224 super.OnMouseEnter( w, x, y );
225
226 RadialMenu.GetInstance().SetControlType( RadialMenuControlType.MOUSE );
227
228 return false;
229 }

References RadialMenu(), x, and y.

◆ OnMouseEnter() [12/13]

override bool UIScriptedMenu::OnMouseEnter ( Widget  w,
int  x,
int  y 
)
inlineprivate

Definition at line 69 of file respawndialogue.c.

70 {
71 string tooltip_header = "";
72 string tooltip_text = "";
73 ColorHighlight( w );
74 switch (w.GetUserID())//hack-ish solution, implement generic tooltip handler!
75 {
77 tooltip_header = "#main_menu_respawn_random";
78 tooltip_text = "#main_menu_respawn_random_tooltip";
79 break;
80
82 tooltip_header = "#main_menu_respawn_custom";
83 tooltip_text = "#main_menu_respawn_custom_tooltip";
84 break;
85
86 /*default:
87 tooltip_header = "boop";
88 tooltip_text = "the snoot";
89 break;*/
90 }
91 SetTooltipTexts(w, tooltip_header, tooltip_text);
92 return true;
93 }

References ColorHighlight(), ID_RESPAWN_CUSTOM, ID_RESPAWN_RANDOM, and SetTooltipTexts().

◆ OnMouseEnter() [13/13]

override bool UIScriptedMenu::OnMouseEnter ( Widget  w,
int  x,
int  y 
)
inlineprivate

Definition at line 1619 of file scriptconsole.c.

1620 {
1621 super.OnMouseEnter(w, x, y);
1622
1623 if(w == m_TeleportXYZ/* || w == m_TeleportX ||w == m_TeleportY*/)
1624 {
1625 EditBoxWidget.Cast(w).SetText("");
1626 return false;
1627 }
1628
1629 return false;
1630 }

References x, and y.

◆ OnMouseExecute() [1/2]

void UIScriptedMenu::OnMouseExecute ( Widget  w)
inlineprivate

Definition at line 472 of file gesturesmenu.c.

473 {
474 }

◆ OnMouseExecute() [2/2]

void UIScriptedMenu::OnMouseExecute ( Widget  w)
inlineprivate

Definition at line 526 of file radialquickbarmenu.c.

527 {
528 }

◆ OnMouseLeave() [1/11]

override bool UIScriptedMenu::OnMouseLeave ( Widget  w,
Widget  enterW,
int  x,
int  y 
)
inlineprivate

Definition at line 856 of file cameratoolsmenu.c.

857 {
858 return true;
859 }

Referenced by ScriptedWidgetEventHandler::OnMouseLeave(), and OptionSelectorBase::OnMouseLeave().

◆ OnMouseLeave() [2/11]

override bool UIScriptedMenu::OnMouseLeave ( Widget  w,
Widget  enterW,
int  x,
int  y 
)
inlineprivate

Definition at line 150 of file ingamemenu.c.

151 {
152 ColorNormal(w);
153 return true;
154 }

References ColorNormal().

◆ OnMouseLeave() [3/11]

override bool UIScriptedMenu::OnMouseLeave ( Widget  w,
Widget  enterW,
int  x,
int  y 
)
inlineprivate

Definition at line 562 of file ingamemenuxbox.c.

563 {
564 if( IsFocusable( w ) )
565 {
566 ColorNormal( w );
567 return true;
568 }
569 return false;
570 }

References ColorNormal(), and IsFocusable().

◆ OnMouseLeave() [4/11]

override bool UIScriptedMenu::OnMouseLeave ( Widget  w,
Widget  enterW,
int  x,
int  y 
)
inlineprivate

Definition at line 410 of file charactercreationmenu.c.

411 {
412 ColorNormal( w );
413 SetFocus( null );
414
415 return true;
416 }

References ColorNormal(), and SetFocus().

◆ OnMouseLeave() [5/11]

override bool UIScriptedMenu::OnMouseLeave ( Widget  w,
Widget  enterW,
int  x,
int  y 
)
inlineprivate

Definition at line 343 of file keybindingsmenu.c.

344 {
345 if( w && IsFocusable( w ) )
346 {
347 if ( (w.GetFlags() & WidgetFlags.DISABLED) || (w.GetFlags() & WidgetFlags.IGNOREPOINTER) )
348 {
349 ColorDisabled(w);
350 }
351 else
352 {
353 ColorWhite( w, enterW );
354 }
355 return true;
356 }
357 return false;
358 }

References ColorDisabled(), ColorWhite(), and IsFocusable().

◆ OnMouseLeave() [6/11]

override bool UIScriptedMenu::OnMouseLeave ( Widget  w,
Widget  enterW,
int  x,
int  y 
)
inlineprivate

Definition at line 258 of file mainmenu.c.

259 {
260 if( w == m_Play )
261 {
262 m_LastPlayedTooltipTimer.FadeOut( m_LastPlayedTooltip, 0.3, true );
263 }
264
265 if( IsFocusable( w ) )
266 {
267 ColorNormal( w );
268 return true;
269 }
270 return false;
271 }

References ColorNormal(), and IsFocusable().

◆ OnMouseLeave() [7/11]

override bool UIScriptedMenu::OnMouseLeave ( Widget  w,
Widget  enterW,
int  x,
int  y 
)
inlineprivate

Definition at line 434 of file tutorialsmenu.c.

435 {
436 if( IsFocusable( w ) )
437 {
438 ColorNormal( w );
439 return true;
440 }
441 return false;
442 }

References ColorNormal(), and IsFocusable().

◆ OnMouseLeave() [8/11]

override bool UIScriptedMenu::OnMouseLeave ( Widget  w,
Widget  enterW,
int  x,
int  y 
)
inlineprivate

Definition at line 532 of file optionsmenu.c.

533 {
534 if ( w && IsFocusable( w ) )
535 {
536 ColorNormal( w );
537 return true;
538 }
539 return false;
540 }

References ColorNormal(), and IsFocusable().

◆ OnMouseLeave() [9/11]

override bool UIScriptedMenu::OnMouseLeave ( Widget  w,
Widget  enterW,
int  x,
int  y 
)
inlineprivate

Definition at line 182 of file serverbrowsermenunew.c.

183 {
184 if ( IsFocusable( w ) )
185 {
186 ColorNormal( w );
187 return true;
188 }
189 return false;
190 }

References ColorNormal(), and IsFocusable().

◆ OnMouseLeave() [10/11]

override bool UIScriptedMenu::OnMouseLeave ( Widget  w,
Widget  enterW,
int  x,
int  y 
)
inlineprivate

Definition at line 95 of file respawndialogue.c.

96 {
97 ColorNormal( w );
98 return true;
99 }

References ColorNormal().

◆ OnMouseLeave() [11/11]

override bool UIScriptedMenu::OnMouseLeave ( Widget  w,
Widget  enterW,
int  x,
int  y 
)
inlineprivate

Definition at line 1606 of file scriptconsole.c.

1607 {
1608 super.OnMouseLeave(w, enterW, x, y);
1609
1610 if(w == m_TeleportXYZ/* || w == m_TeleportX ||w == m_TeleportY*/)
1611 {
1612 if(m_TeleportXYZ.GetText() == "")
1613 EditBoxWidget.Cast(w).SetText(DEFAULT_POS_XYZ);
1614 return false;
1615 }
1616 return false;
1617 }

References x, and y.

◆ OnMousePressLeft() [1/2]

void UIScriptedMenu::OnMousePressLeft ( Widget  w)
inlineprivate

LMB.

Definition at line 477 of file gesturesmenu.c.

478 {
479 if (instance.m_IsCategorySelected)
480 {
482 }
483 else
484 {
486 }
487 }

◆ OnMousePressLeft() [2/2]

void UIScriptedMenu::OnMousePressLeft ( Widget  w)
inlineprivate

LMB.

Definition at line 531 of file radialquickbarmenu.c.

532 {
533 PrimaryAction( w );
534 }

◆ OnMousePressRight() [1/2]

void UIScriptedMenu::OnMousePressRight ( Widget  w)
inlineprivate

RMB.

Definition at line 490 of file gesturesmenu.c.

491 {
492 BackOneLevel();
493 }

◆ OnMousePressRight() [2/2]

void UIScriptedMenu::OnMousePressRight ( Widget  w)
inlineprivate

RMB.

Definition at line 537 of file radialquickbarmenu.c.

538 {
539 BackOneLevel();
540 }

◆ OnMouseSelect() [1/2]

void UIScriptedMenu::OnMouseSelect ( Widget  w)
inlineprivate

Definition at line 462 of file gesturesmenu.c.

463 {
464 MarkSelected( w );
465 }

◆ OnMouseSelect() [2/2]

void UIScriptedMenu::OnMouseSelect ( Widget  w)
inlineprivate

Definition at line 516 of file radialquickbarmenu.c.

517 {
518 MarkSelected( w );
519 }

◆ OnMouseWheel() [1/3]

override bool UIScriptedMenu::OnMouseWheel ( Widget  w,
int  x,
int  y,
int  wheel 
)
inlineprivate

Definition at line 105 of file inspectmenunew.c.

106 {
107 super.OnMouseWheel(w, x, y, wheel);
108
109 if ( w == m_item_widget )
110 {
111 m_characterScaleDelta = wheel;
112 UpdateScale();
113 }
114 return false;
115 }
private int m_characterScaleDelta
Definition: inspectmenunew.c:8

References UpdateScale(), x, and y.

◆ OnMouseWheel() [2/3]

override bool UIScriptedMenu::OnMouseWheel ( Widget  w,
int  x,
int  y,
int  wheel 
)
inlineprivate

Definition at line 360 of file keybindingsmenu.c.

361 {
362 return super.OnMouseWheel(w, x, y, wheel);
363 }

References x, and y.

◆ OnMouseWheel() [3/3]

override bool UIScriptedMenu::OnMouseWheel ( Widget  w,
int  x,
int  y,
int  wheel 
)
inlineprivate

Definition at line 813 of file sceneeditormenu.c.

814 {
815 super.OnMouseWheel(w, x, y, wheel);
816
817 m_ModuleSceneManager.OnMouseWheel(wheel);
818 return true;
819 }

References x, and y.

◆ OnPermissionsUpdate()

void UIScriptedMenu::OnPermissionsUpdate ( BiosPrivacyUidResultArray  result_list)
inlineprivate

Definition at line 498 of file ingamemenuxbox.c.

499 {
500 m_ServerInfoPanel.Reload( result_list );
501
502 Refresh();
503 }

References Refresh().

◆ OnRPCEx()

override void UIScriptedMenu::OnRPCEx ( int  rpc_type,
ParamsReadContext  ctx 
)
inlineprivate

Definition at line 2820 of file scriptconsole.c.

2821 {
2822 super.OnRPCEx(rpc_type, ctx);
2823
2824 switch (rpc_type)
2825 {
2826 case ERPCs.DEV_PLAYER_DEBUG_DATA:
2827 {
2829 break;
2830 }
2831
2832 case ERPCs.DEV_RPC_SERVER_SCRIPT_RESULT:
2833 {
2835 {
2837 }
2838 }
2839 break;
2840 }
2841
2842 }
static ref Param1< bool > PARAM1_BOOL
proto bool Read(void value_in)
ref array< ref RemotePlayerStatDebug > m_PlayerDebugStats
void ColorRunButton(bool success)

References ColorRunButton(), m_PlayerDebugStats, CachedObjectsParams::PARAM1_BOOL, and Serializer::Read().

◆ OnSelectKBPreset()

void UIScriptedMenu::OnSelectKBPreset ( int  index)
inlineprivate

Definition at line 488 of file keybindingsmenu.c.

489 {
490 m_OriginalPresetIndex = index;
491 m_GroupsContainer.OnSelectKBPreset(index);
492 string profile_text;
493 GetGame().GetInput().GetProfileName( index, profile_text );
494 }

References GetGame(), CGame::GetInput(), and Input::GetProfileName().

◆ OnShow() [1/14]

override void UIScriptedMenu::OnShow ( )
inlineprivate

Definition at line 88 of file cameratoolsmenu.c.

89 {
90 super.OnShow();
91 if ( !m_IsPlaying )
92 {
94 }
95 }
void AddActiveInputExcludes(array< string > excludes)

References Mission::AddActiveInputExcludes(), GetGame(), CGame::GetMission(), and m_IsPlaying.

Referenced by PluginBase::CursorShow(), and PluginBase::FreeCameraControlDisable().

◆ OnShow() [2/14]

override void UIScriptedMenu::OnShow ( )
inlineprivate

Definition at line 54 of file chatinputmenu.c.

55 {
57 }

References SetFocus().

◆ OnShow() [3/14]

override void UIScriptedMenu::OnShow ( )
inlineprivate

Definition at line 442 of file controlsxboxnew.c.

443 {
444 super.OnShow();
445
447 }
protected void UpdateToolbarText()

References UpdateToolbarText().

◆ OnShow() [4/14]

override void UIScriptedMenu::OnShow ( )
inlineprivate

Definition at line 207 of file gesturesmenu.c.

208 {
209 super.OnShow();
210
211 SetFocus( layoutRoot );
212 m_IsMenuClosing = false;
213 }

References SetFocus().

◆ OnShow() [5/14]

override void UIScriptedMenu::OnShow ( )
inlineprivate

Definition at line 505 of file ingamemenuxbox.c.

506 {
507 super.OnShow();
508 Man player = GetGame().GetPlayer();
509 if (player)
510 {
511 int life_state = player.GetPlayerState();
512
513 if (life_state == EPlayerStates.ALIVE)
514 {
515 m_PlayerAlive = true;
516 }
517 }
518
519 if ( m_PlayerAlive )
520 {
521 m_RestartButton.Show( player.IsUnconscious() );
522 }
523 else
524 {
525 m_RestartButton.Show( false );
526 }
529
531
532 #ifdef PLATFORM_CONSOLE
535 TextWidget warning = TextWidget.Cast( layoutRoot.FindAnyWidget( "MouseAndKeyboardWarning" ) );
536 if( mk )
537 {
538 if( mk_server )
539 {
540 warning.SetText( "#str_mouse_and_keyboard_server_warning" );
541 }
542 else
543 {
544 warning.SetText( "#str_controller_server_warning" );
545 }
546 }
547
548 warning.Show( mk );
549 #endif
550 }
proto native bool IsEnabledMouseAndKeyboard()
proto native bool IsEnabledMouseAndKeyboardEvenOnServer()

References GetGame(), CGame::GetInput(), CGame::GetPlayer(), Input::IsEnabledMouseAndKeyboard(), Input::IsEnabledMouseAndKeyboardEvenOnServer(), and UpdateMenuFocus().

◆ OnShow() [6/14]

override void UIScriptedMenu::OnShow ( )
inlineprivate

Definition at line 36 of file invitemenu.c.

37 {
38 super.OnShow();
39 }

◆ OnShow() [7/14]

override void UIScriptedMenu::OnShow ( )
inlineprivate

Definition at line 514 of file charactercreationmenu.c.

515 {
516#ifdef PLATFORM_CONSOLE
517 m_GenderSelector.Focus();
518 layoutRoot.FindAnyWidget( "play_panel_root" ).Show( GetGame().GetInput().IsEnabledMouseAndKeyboard() );
519 layoutRoot.FindAnyWidget( "toolbar_bg" ).Show( !GetGame().GetInput().IsEnabledMouseAndKeyboard() );
520#endif
522
523 /*
524 if( m_Scene && m_Scene.GetIntroCamera() )
525 {
526 m_Scene.GetIntroCamera().LookAt( m_Scene.GetIntroCharacter().GetPosition() + Vector( 0, 1, 0 ) );
527 }
528 */
529 }

References CheckNewOptions(), GetGame(), and GetInput().

◆ OnShow() [8/14]

override void UIScriptedMenu::OnShow ( )
inlineprivate

Definition at line 330 of file mainmenu.c.

331 {
332 //Print("MainMenu game state = " + g_Game.GetGameState());
333 if (g_Game.GetGameState() != DayZGameState.MAIN_MENU)
334 return;
335
336 SetFocus( null );
337 OnChangeCharacter(false);
338 LoadMods();
339 return;
340 /*
341 GetDayZGame().GetBacklit().MainMenu_OnShow();
342
343 SetFocus( layoutRoot );
344 g_Game.SetLoadState( DayZLoadState.MAIN_MENU_CONTROLLER_SELECT );
345
346 Refresh();
347
348 if( m_ScenePC && m_ScenePC.GetIntroCamera() )
349 {
350 m_ScenePC.GetIntroCamera().LookAt( m_ScenePC.GetIntroCharacter().GetPosition() + Vector( 0, 1, 0 ) );
351 }
352
353 LoadMods();
354 */
355 }

References g_Game, LoadMods(), OnChangeCharacter(), and SetFocus().

◆ OnShow() [9/14]

override void UIScriptedMenu::OnShow ( )
inlineprivate

Definition at line 228 of file mainmenuconsoles.c.

229 {
230 GetDayZGame().GetBacklit().MainMenu_OnShow();
231
233
234 LoadMods();
235 Refresh();
236
238 {
239 m_ScenePC.GetIntroCamera().LookAt( m_ScenePC.GetIntroCharacter().GetPosition() + Vector( 0, 1, 0 ) );
240 }
241
242 super.OnShow();
243 #ifdef PLATFORM_CONSOLE
244 #ifndef PLATFORM_PS4
245 layoutRoot.FindAnyWidget( "choose_account" ).Show( GetGame().GetInput().IsEnabledMouseAndKeyboard() );
246 #endif
247 layoutRoot.FindAnyWidget( "ButtonHolderCredits" ).Show( GetGame().GetInput().IsEnabledMouseAndKeyboard() );
249 #endif
250 }
Camera GetIntroCamera()

References GetDayZGame(), GetGame(), GetInput(), DayZIntroScene::GetIntroCamera(), DayZIntroScene::GetIntroCharacter(), LoadMods(), Refresh(), SetFocus(), UpdateControlsElements(), and Vector().

◆ OnShow() [10/14]

override void UIScriptedMenu::OnShow ( )
inlineprivate

Definition at line 42 of file mainmenuvideo.c.

43 {
44 super.OnShow();
46 }

References GetGame(), CGame::GetUIManager(), and UIManager::ShowUICursor().

◆ OnShow() [11/14]

override void UIScriptedMenu::OnShow ( )
inlineprivate

Definition at line 597 of file optionsmenu.c.

598 {
599 super.OnShow();
600 m_GameTab.Focus();
601 Refresh();
602 }

References Refresh().

◆ OnShow() [12/14]

override void UIScriptedMenu::OnShow ( )
inlineprivate

Definition at line 205 of file radialquickbarmenu.c.

206 {
207 super.OnShow();
208
209 SetFocus( layoutRoot );
210 m_IsMenuClosing = false;
211 }

References SetFocus().

◆ OnShow() [13/14]

override void UIScriptedMenu::OnShow ( )
inlineprivate

Definition at line 800 of file sceneeditormenu.c.

801 {
803 }

References Mission::AddActiveInputExcludes(), GetGame(), and CGame::GetMission().

◆ OnShow() [14/14]

override void UIScriptedMenu::OnShow ( )
inlineprivate

Definition at line 52 of file titlescreenmenu.c.

53 {
54 if( g_Game.GetGameState() != DayZGameState.CONNECTING )
55 {
56 #ifdef PLATFORM_CONSOLE
57 g_Game.GamepadCheck();
58 #endif
59 }
60 layoutRoot.FindAnyWidget("notification_root").Show(false);
61
62 #ifdef PLATFORM_CONSOLE
63 #ifdef PLATFORM_XBOX
64 #ifdef BUILD_EXPERIMENTAL
65 layoutRoot.FindAnyWidget("notification_root").Show(true);
66 #endif
67 #endif
68 #endif
69 SetWidgetAnimAlpha( m_TextPress );
70 }

References g_Game.

◆ OnTabSeleted()

void UIScriptedMenu::OnTabSeleted ( int  tabID)
inlineprivate

Definition at line 2792 of file scriptconsole.c.

2793 {
2794 if (tabID == TABS_VICINITY)
2795 {
2796 array<Object> objects = new array<Object>();
2797 array<CargoBase> cargo = new array<CargoBase>();
2798
2799 GetGame().GetObjectsAtPosition(GetGame().GetPlayer().GetPosition(), 30, objects,cargo);
2800 m_VicinityListbox.ClearItems();
2801 m_VicinityItems.Clear();
2802 foreach (Object o:objects)
2803 {
2804 if (o.Type().ToString() != "Object")
2805 {
2806 m_VicinityItems.Insert(o);
2807 m_VicinityListbox.AddItem(o.GetType(),null,0);
2808 }
2809 }
2810 }
2811 else if (tabID == TABS_SOUNDS)
2812 {
2813 m_SoundFilter.SetText(m_ConfigDebugProfile.GetSoundsetFilter());
2815 }
2816 }

References ChangeFilterSound(), GetGame(), CGame::GetObjectsAtPosition(), GetPlayer(), and GetPosition.

Referenced by SelectTab().

◆ OnTabSwitch() [1/2]

void UIScriptedMenu::OnTabSwitch ( )
inlineprivate

◆ OnTabSwitch() [2/2]

void UIScriptedMenu::OnTabSwitch ( int  tab)
inlineprivate

Definition at line 143 of file optionsmenu.c.

144 {
145 switch ( tab )
146 {
147 case 0:
148 {
149 m_GameTab.Focus();
150 break;
151 }
152 case 1:
153 {
154 m_SoundsTab.Focus();
155 break;
156 }
157 case 2:
158 {
159 #ifdef PLATFORM_XBOX
160 m_ControlsTab.Focus();
161 #else
162 m_VideoTab.Focus();
163 #endif
164 break;
165 }
166 case 3:
167 {
168 #ifndef PLATFORM_XBOX
169 m_ControlsTab.Focus();
170 #endif
171 break;
172 }
173 }
174
175 m_ActiveTabIdx = tab;
176 }
protected int m_ActiveTabIdx
Definition: optionsmenu.c:22

◆ OnVisibilityChanged()

override void UIScriptedMenu::OnVisibilityChanged ( bool  isVisible)
inlineprivate

Definition at line 104 of file mainmenuvideo.c.

105 {
106 if ( !isVisible )
107 {
108 m_Video.Play( VideoCommand.KILL );
109 }
110 }

◆ OpenCredits() [1/2]

void UIScriptedMenu::OpenCredits ( )
inlineprivate

Definition at line 508 of file mainmenu.c.

509 {
510 EnterScriptedMenu(MENU_CREDITS);
511 m_Mission.OnMenuEnter(MENU_CREDITS);
512 }
const int MENU_CREDITS
Definition: constants.c:182

References m_Mission, and MENU_CREDITS.

Referenced by OnClick(), and Update().

◆ OpenCredits() [2/2]

void UIScriptedMenu::OpenCredits ( )
inlineprivate

Definition at line 326 of file mainmenuconsoles.c.

327 {
328 EnterScriptedMenu(MENU_CREDITS);
329 m_Mission.OnMenuEnter(MENU_CREDITS);
330 }

References m_Mission, and MENU_CREDITS.

◆ OpenMenu() [1/2]

static void UIScriptedMenu::OpenMenu ( )
inlinestaticprivate

Definition at line 154 of file gesturesmenu.c.

155 {
157 }
proto native UIScriptedMenu EnterScriptedMenu(int id, UIMenuPanel parent)
Create & open menu with specific id (see MenuID) and set its parent.
const int MENU_GESTURES
Definition: constants.c:171

References UIManager::EnterScriptedMenu(), GetGame(), CGame::GetUIManager(), and MENU_GESTURES.

◆ OpenMenu() [2/2]

static void UIScriptedMenu::OpenMenu ( UIScriptedMenu  parent = NULL)
inlinestaticprivate

Definition at line 163 of file radialquickbarmenu.c.

164 {
166 }
const int MENU_RADIAL_QUICKBAR
Definition: constants.c:175

References UIManager::EnterScriptedMenu(), GetGame(), CGame::GetUIManager(), and MENU_RADIAL_QUICKBAR.

◆ OpenMenuControls()

void UIScriptedMenu::OpenMenuControls ( )
inlineprivate

Definition at line 301 of file mainmenuconsoles.c.

302 {
303 EnterScriptedMenu( MENU_XBOX_CONTROLS );
304 }

References MENU_XBOX_CONTROLS.

Referenced by OnClick().

◆ OpenMenuCustomizeCharacter() [1/2]

void UIScriptedMenu::OpenMenuCustomizeCharacter ( )
inlineprivate

Definition at line 411 of file mainmenu.c.

412 {
413 EnterScriptedMenu(MENU_CHARACTER);
414 }

References MENU_CHARACTER.

Referenced by OnClick().

◆ OpenMenuCustomizeCharacter() [2/2]

void UIScriptedMenu::OpenMenuCustomizeCharacter ( )
inlineprivate

Definition at line 321 of file mainmenuconsoles.c.

322 {
323 EnterScriptedMenu(MENU_CHARACTER);
324 }

References MENU_CHARACTER.

◆ OpenMenuOptions()

void UIScriptedMenu::OpenMenuOptions ( )
inlineprivate

Definition at line 306 of file mainmenuconsoles.c.

307 {
308 EnterScriptedMenu(MENU_OPTIONS);
309 }

References MENU_OPTIONS.

Referenced by OnClick().

◆ OpenMenuPlayVideo()

void UIScriptedMenu::OpenMenuPlayVideo ( )
inlineprivate

Definition at line 311 of file mainmenuconsoles.c.

312 {
313 EnterScriptedMenu(MENU_VIDEO);
314 }
const int MENU_VIDEO
Definition: constants.c:179

References MENU_VIDEO.

Referenced by OnClick().

◆ OpenMenuServerBrowser() [1/2]

void UIScriptedMenu::OpenMenuServerBrowser ( )
inlineprivate

Definition at line 395 of file mainmenu.c.

396 {
397 EnterScriptedMenu(MENU_SERVER_BROWSER);
398
399 //saves demounit for further use
400 if (m_ScenePC && m_ScenePC.GetIntroCharacter() && m_ScenePC.GetIntroCharacter().GetCharacterID() == -1 )
401 {
402 PlayerBase player = m_ScenePC.GetIntroCharacter().GetCharacterObj();
403 if(player && player.GetInventory() && player.GetInventory().FindAttachment(InventorySlots.BODY))
404 {
405 //todo - save default char here if none exists
406 //m_ScenePC.GetIntroCharacter().SaveCharacterSetup();
407 }
408 }
409 }
const int MENU_SERVER_BROWSER
Definition: constants.c:177

References DayZIntroScene::GetIntroCharacter(), and MENU_SERVER_BROWSER.

Referenced by ConnectLastSession(), and OnClick().

◆ OpenMenuServerBrowser() [2/2]

void UIScriptedMenu::OpenMenuServerBrowser ( )
inlineprivate

Definition at line 296 of file mainmenuconsoles.c.

297 {
298 EnterScriptedMenu(MENU_SERVER_BROWSER);
299 }

References MENU_SERVER_BROWSER.

◆ OpenMenuTutorials()

void UIScriptedMenu::OpenMenuTutorials ( )
inlineprivate

Definition at line 316 of file mainmenuconsoles.c.

317 {
318 EnterScriptedMenu(MENU_TUTORIAL);
319 }

References MENU_TUTORIAL.

Referenced by OnClick(), and OnModalResult().

◆ OpenMessages()

void UIScriptedMenu::OpenMessages ( )
inlineprivate

Definition at line 488 of file mainmenu.c.

489 {
490
491 }

◆ OpenSettings()

void UIScriptedMenu::OpenSettings ( )
inlineprivate

Definition at line 493 of file mainmenu.c.

494 {
495 EnterScriptedMenu(MENU_OPTIONS);
496 }

References MENU_OPTIONS.

Referenced by OnClick().

◆ OpenStats()

void UIScriptedMenu::OpenStats ( )
inlineprivate

Definition at line 483 of file mainmenu.c.

484 {
485
486 }

◆ OpenTutorials()

void UIScriptedMenu::OpenTutorials ( )
inlineprivate

Definition at line 503 of file mainmenu.c.

504 {
505 EnterScriptedMenu(MENU_TUTORIAL);
506 }

References MENU_TUTORIAL.

Referenced by OnClick(), and OnModalResult().

◆ OptionsMenu()

void UIScriptedMenu::OptionsMenu ( )
inlineprivate

Definition at line 27 of file optionsmenu.c.

28 {
29
30 }

◆ PerformSetToDefaults() [1/2]

void UIScriptedMenu::PerformSetToDefaults ( )
inlineprivate

Definition at line 268 of file keybindingsmenu.c.

269 {
271 m_Apply.SetFlags( WidgetFlags.IGNOREPOINTER );
273 m_Undo.SetFlags( WidgetFlags.IGNOREPOINTER );
275 m_Defaults.SetFlags( WidgetFlags.IGNOREPOINTER );
276
277 GetUApi().Revert();
278
279 GetGame().GetCallQueue(CALL_CATEGORY_GUI).Call(GetGame().GetMission().RefreshExcludes);
280
281 m_GroupsContainer.Reset(true);
282 }
proto native void Revert()

References ScriptCallQueue::Call(), CALL_CATEGORY_GUI, ColorDisabled(), CGame::GetCallQueue(), GetGame(), GetUApi(), and UAInputAPI::Revert().

Referenced by OnClick(), OnModalResult(), and Update().

◆ PerformSetToDefaults() [2/2]

void UIScriptedMenu::PerformSetToDefaults ( )
inlineprivate

Definition at line 383 of file optionsmenu.c.

384 {
385 switch ( m_ActiveTabIdx )
386 {
387 case 0:
388 {
389 m_GameTab.SetToDefaults();
390 break;
391 }
392 case 1:
393 {
394 m_SoundsTab.SetToDefaults();
395 break;
396 }
397 case 2:
398 {
399 #ifdef PLATFORM_XBOX
400 m_ControlsTab.SetToDefaults();
401 #else
402 m_VideoTab.SetToDefaults();
403 #endif
404 break;
405 }
406 case 3:
407 {
408 #ifndef PLATFORM_XBOX
409 m_ControlsTab.SetToDefaults();
410 #endif
411 break;
412 }
413 }
414
415 if (GetGame().GetInput().IsEnabledMouseAndKeyboard())
416 {
417 m_Reset.ClearFlags( WidgetFlags.IGNOREPOINTER );
419 m_Apply.ClearFlags( WidgetFlags.IGNOREPOINTER );
421 }
422
423 m_CanApplyOrReset = true;
424 #ifdef PLATFORM_CONSOLE
426 #endif
427 }

References ColorNormal(), GetGame(), GetInput(), and UpdateControlsElements().

◆ PerformSwitchPreset()

protected void UIScriptedMenu::PerformSwitchPreset ( )
inlineprivate

Definition at line 530 of file controlsxboxnew.c.

531 {
532 int index;
533 string preset_text;
534 UAInputAPI inputAPI = GetUApi();
535
536 index = inputAPI.PresetCurrent() + 1;
537 if (index >= inputAPI.PresetCount())
538 {
539 index = 0;
540 }
541
542 inputAPI.PresetSelect(index);
544
545 GetUApi().Export();
547
549
551 }
proto native void SaveInputPresetMiscData()
proto native int PresetCurrent()
proto native void PresetSelect(int index)
proto native int PresetCount()

References UAInputAPI::Export(), GetGame(), CGame::GetMission(), Mission::GetOnInputPresetChanged(), GetUApi(), ScriptInvoker::Invoke(), UAInputAPI::PresetCount(), UAInputAPI::PresetCurrent(), UAInputAPI::PresetSelect(), UAInputAPI::SaveInputPresetMiscData(), InputUtils::UpdateConsolePresetID(), and UpdateToolbarText().

Referenced by Update().

◆ Play() [1/3]

void UIScriptedMenu::Play ( )
inlineprivate

Definition at line 379 of file cameratoolsmenu.c.

380 {
381 if (Camera.GetCurrentCamera())
382 Camera.GetCurrentCamera().GetTransform(m_FreeflightCamTransform);
383 if ( m_Cameras.Count() > 0 )
384 {
385 layoutRoot.Show( false );
386 GetGame().GetUIManager().ShowCursor( false );
388
389 foreach ( CTKeyframe keyframe : m_Cameras )
390 {
391 Param6<vector, vector, float, float, float, int> transform = new Param6<vector, vector, float, float, float, int>( keyframe.GetPosition(), keyframe.GetOrientation(), keyframe.GetInterpTime(), keyframe.GetFOV(), keyframe.GetDOF(), keyframe.GetPin() );
392 m_CameraLines.Insert( transform );
393
394 }
395
396 foreach ( CTActor ac : m_Actors )
397 {
398 ac.Hide();
399 }
400
401 foreach ( CTEvent ev : m_Events )
402 {
403 ev.GetEventTime();
404 }
405
407
408 int time = SetCameraData( GetCameraLine( 0 ), GetCameraLine( 1 ) );
409
410 if ( GetCameraLine( 0 ).param6 > -1 )
411 {
413 m_NextCamPosition = "0 0 0";
414 m_Camera1.SetActive( true );
415 }
416 else
417 {
418 m_NextCamPosition = m_Camera2.GetPosition();
420 m_Camera1.SetActive( true );
421 m_Camera1.InterpolateTo( m_Camera2, time, m_InterpTypeCombo.GetCurrentItem() );
422 }
423
425 m_IsPlaying = true;
426 m_Time = 0;
427 }
428 }
protected vector m_NextCamPosition
Param6< vector, vector, float, float, float, int > GetCameraLine(int index)
float SetCameraData(Param6< vector, vector, float, float, float, int > transform1, Param6< vector, vector, float, float, float, int > transform2)
vector m_FreeflightCamTransform[4]
protected float m_Time
protected int m_NextCameraIndex
protected float m_FollowingTimeFinished

References DeveloperFreeCamera::DisableFreeCamera(), GetGame(), GetPlayer(), CGame::GetUIManager(), m_IsPlaying, m_Time, and UIManager::ShowCursor().

Referenced by Connect(), and OnClick().

◆ Play() [2/3]

void UIScriptedMenu::Play ( )
inlineprivate

Definition at line 373 of file mainmenu.c.

374 {
375 if( !g_Game.IsNewCharacter() )
376 {
377 GetGame().GetCallQueue(CALL_CATEGORY_GUI).CallByName(this, "ConnectLastSession");
378 }
379 else
380 {
381 GetGame().GetCallQueue(CALL_CATEGORY_GUI).CallByName(this, "ConnectBestServer");
382 }
383 }
proto void CallByName(Class obj, string fnName, Param params=NULL)
adds call into the queue with given parameters and arguments (arguments are held in memory until the ...

References CALL_CATEGORY_GUI, ScriptCallQueue::CallByName(), g_Game, CGame::GetCallQueue(), and GetGame().

◆ Play() [3/3]

void UIScriptedMenu::Play ( )
inlineprivate

Definition at line 580 of file serverbrowsermenunew.c.

581 {
582 if ( m_SelectedServer )
583 {
584 string mapNM = m_SelectedServer.GetMapToRun();
585 if ( !g_Game.VerifyWorldOwnership(mapNM) )
586 {
587 GetGame().GetUIManager().ShowDialog( "#server_browser_connect_label", "#mod_detail_info_warning", 232, DBT_OK, DBB_NONE, DMT_INFO, GetGame().GetUIManager().GetMenu() );
588 g_Game.GoBuyWorldDLC(mapNM);
589 return;
590 }
591
592 string ip = m_SelectedServer.GetIP();
593 int port = m_SelectedServer.GetPort();
594 g_Game.ConnectFromServerBrowser( ip, port, "" );
595 }
596 }
protected ServerBrowserEntry m_SelectedServer

References g_Game, GetGame(), CGame::GetUIManager(), m_SelectedServer, and UIManager::ShowDialog().

◆ PlayAnimOnActor()

static void UIScriptedMenu::PlayAnimOnActor ( int  actor,
int  anim 
)
inlinestaticprivate

Definition at line 178 of file cameratoolsmenu.c.

179 {
180 if ( m_Instance )
181 {
182 PlayerBase p = m_Instance.GetActor( actor );
183 if ( p )
184 {
185 EmoteCB cb = EmoteCB.Cast( p.StartCommand_Action( anim, EmoteCB, DayZPlayerConstants.STANCEMASK_ALL ) );
186 cb.EnableCancelCondition(true);
187 }
188 }
189 }
DayZPlayerConstants
defined in C++
Definition: dayzplayer.c:574

References m_Instance.

◆ PlayPauseVideo()

void UIScriptedMenu::PlayPauseVideo ( )
inlineprivate

Definition at line 73 of file mainmenuvideo.c.

74 {
75 if( m_Video )
76 {
77 if( m_Video.Play( VideoCommand.ISPLAYING ) )
78 {
79 m_Video.Play( VideoCommand.STOP );
80 //m_PlayPauseText.SetText( "Play" );
81 m_IsPaused = true;
82 }
83 else
84 {
85 m_Video.Play( VideoCommand.PLAY );
86 //m_PlayPauseText.SetText( "Pause" );
87 m_IsPaused = false;
88 }
89 }
90 }

◆ PlayVideo()

void UIScriptedMenu::PlayVideo ( )
inlineprivate

Definition at line 498 of file mainmenu.c.

499 {
500 EnterScriptedMenu(MENU_VIDEO);
501 }

References MENU_VIDEO.

Referenced by OnClick().

◆ PlayVideoLoop()

void UIScriptedMenu::PlayVideoLoop ( )
inlineprivate

Definition at line 55 of file mainmenuvideo.c.

56 {
57 if( m_Video && !m_IsPaused && !m_Video.Play( VideoCommand.ISPLAYING ) )
58 {
59 StopVideo();
60 }
61 }

References StopVideo().

◆ PopupBack()

UIPopupScript UIScriptedMenu::PopupBack ( )
inlineprivate

Definition at line 888 of file sceneeditormenu.c.

889 {
890 if ( m_OpenedPopups.Count() > 0 )
891 {
892 int popup_curr_id = m_OpenedPopups.Get(m_OpenedPopups.Count() - 1);
893
894 m_Popups.Get(popup_curr_id).Show(false);
895 m_Popups.Get(popup_curr_id).OnClose();
896
897 m_OpenedPopups.Remove(m_OpenedPopups.Count() - 1);
898
899 if ( m_OpenedPopups.Count() > 0 )
900 {
901 int ppp_id = m_OpenedPopups.Get(m_OpenedPopups.Count() - 1);
902 m_Popups.Get(ppp_id).Show(true);
903 m_Popups.Get(ppp_id).OnOpen(NULL);
904
905 return m_Popups.Get(ppp_id);
906 }
907 }
908
909 m_WgtPopupsMain.Show(false);
910 m_WgtPopupsBg.Show(false);
911
912 return NULL;
913 }
protected ref TIntArray m_OpenedPopups

References UIPopupScript::Show().

◆ PopupClose()

private void UIScriptedMenu::PopupClose ( int  popup_id)
inlineprivate

Definition at line 1253 of file sceneeditormenu.c.

1254 {
1255 }

◆ PopupCloseAll()

void UIScriptedMenu::PopupCloseAll ( )
inlineprivate

Definition at line 918 of file sceneeditormenu.c.

919 {
920 if ( m_OpenedPopups.Count() > 0 )
921 {
922 int popup_curr_id = m_OpenedPopups.Get(m_OpenedPopups.Count() - 1);
923
924 m_Popups.Get(popup_curr_id).Show(false);
925 m_Popups.Get(popup_curr_id).OnClose();
926
927 m_OpenedPopups.Clear();
928 }
929 }

Referenced by ~SceneEditorMenu().

◆ PopupHideAll()

private void UIScriptedMenu::PopupHideAll ( )
inlineprivate

Definition at line 1260 of file sceneeditormenu.c.

1261 {
1262 for ( int i = 0; i < m_Popups.Count(); ++i )
1263 {
1264 m_Popups.Get(i).Show(false);
1265 }
1266
1267 m_WgtPopupsMain.Show(false);
1268 m_WgtPopupsBg.Show(false);
1269 }

Referenced by Init().

◆ PopupOpen()

UIPopupScript UIScriptedMenu::PopupOpen ( int  popup_id,
Param  param 
)
inlineprivate

Definition at line 861 of file sceneeditormenu.c.

862 {
863 // Open background image (black transparent) under popups
864 if ( m_OpenedPopups.Count() == 0 )
865 {
866 m_WgtPopupsMain.Show(true);
867 m_WgtPopupsBg.Show(true);
868 }
869 else
870 {
871 int popup_curr_id = m_OpenedPopups.Get(m_OpenedPopups.Count() - 1);
872 m_Popups.Get(popup_curr_id).Show(false);
873 }
874
875 m_OpenedPopups.Insert(popup_id);
876
877 UIPopupScript popup = m_Popups.Get(popup_id);
878
879 popup.Show(true);
880 popup.OnOpen(param);
881
882 return popup;
883 }
void Show(bool show)
Definition: uipopupscript.c:19
void OnOpen(Param param)
Definition: uipopupscript.c:11

References UIPopupScript::OnOpen(), and UIPopupScript::Show().

Referenced by OnClick().

◆ PresetsMenu()

void UIScriptedMenu::PresetsMenu ( )
inlineprivate

Definition at line 3 of file presetsmenu.c.

4 {
5 }

◆ PreviousCharacter() [1/2]

void UIScriptedMenu::PreviousCharacter ( )
inlineprivate

Definition at line 430 of file mainmenu.c.

431 {
433 {
434 //m_ScenePC.GetIntroCharacter().SaveCharName();
435 int charID = m_ScenePC.GetIntroCharacter().GetPrevCharacterID();
436 if( charID != m_ScenePC.GetIntroCharacter().GetCharacterID())
437 {
438 m_ScenePC.GetIntroCharacter().SetCharacterID(charID);
440 }
441 }
442 }

References DayZIntroScene::GetIntroCharacter(), and OnChangeCharacter().

Referenced by OnClick().

◆ PreviousCharacter() [2/2]

void UIScriptedMenu::PreviousCharacter ( )
inlineprivate

Definition at line 609 of file serverbrowsermenunew.c.

610 {
611
612 }

◆ PrimaryAction()

protected void UIScriptedMenu::PrimaryAction ( Widget  w)
inlineprivate

Definition at line 634 of file radialquickbarmenu.c.

635 {
636 if ( instance.m_SelectedItem )
637 {
638 if ( !GetGame().IsDedicatedServer() )
639 {
640 RadialQuickbarItem quickbar_item;
641 instance.m_SelectedItem.GetUserData( quickbar_item );
642
643 if ( quickbar_item )
644 {
645 PlayerBase player = PlayerBase.Cast( GetGame().GetPlayer() );
646
647 //ASSIGN ACTION
648 if ( GetItemToAssign() )
649 {
650 //assign item to slot
651 if ( quickbar_item.GetItem() == GetItemToAssign() )
652 {
653 player.RemoveQuickBarEntityShortcut( GetItemToAssign() );
654 }
655 else
656 {
657 player.SetQuickBarEntityShortcut( GetItemToAssign(), quickbar_item.GetId() );
658 }
659 }
660 //LIGHTS
661 else if (m_CurrentCategory == RadialQuickbarCategory.SPECIALIZED_LIGHTS && quickbar_item.IsLightSourceExtra())
662 {
663 HandleLights(quickbar_item);
664 }
665 //NVG
666 else if (m_CurrentCategory == RadialQuickbarCategory.SPECIALIZED_LIGHTS && quickbar_item.IsNVGExtra())
667 {
668 HandleNVG(quickbar_item);
669 }
670 //change quickbar category
671 else if (quickbar_item.GetCategorySwitchID() != -1)
672 {
673 ChangeCurrentCategory(quickbar_item.GetCategorySwitchID());
674 return;
675 }
676 //SWAP
677 else
678 {
679 EntityAI item = quickbar_item.GetItem();
680
681 if ( item )
682 {
683 //swap
684 player.RadialQuickBarSingleUse( quickbar_item.GetId() + 1 ); //id must begin with 1 (simulating key press 1-9)
685 }
686 }
687
688 RefreshQuickbar( false );
689 }
690 }
691 }
692 }
void HandleLights(RadialQuickbarItem quickbar_item)
void HandleNVG(RadialQuickbarItem quickbar_item)
static EntityAI GetItemToAssign()

References GetGame(), GetPlayer(), RadialQuickbarItem(), and RefreshQuickbar().

◆ ProcessDistanceAndUnits()

protected void UIScriptedMenu::ProcessDistanceAndUnits ( float  num,
out float  dist,
out string  units 
)
inlineprivate

Definition at line 420 of file mapmenu.c.

421 {
422 if (num >= 901)
423 {
424 num *= 0.001;
425 num = Math.Round(num * 10) * 0.1;
426 dist = num;
427 units = "km";
428 }
429 else if (num >= 100 && num <= 900)
430 {
431 num = Math.Ceil(num * 0.1) * 10;
432 dist = num;
433 units = "m";
434 }
435 else if (num >= 1)
436 {
437 num = Math.Floor(num);
438 dist = num;
439 units = "m";
440 }
441 else
442 {
443 num = Math.Ceil(num * 10);
444 dist = num;
445 units = "cm";
446 }
447 }
static proto float Floor(float f)
Returns floor of value.

References Math::Ceil(), Math::Floor(), and Math::Round().

Referenced by Update().

◆ ProcessEmoteConditionRequest()

void UIScriptedMenu::ProcessEmoteConditionRequest ( GestureMenuItem  gesture_item)
inlineprivate

Definition at line 258 of file gesturesmenu.c.

259 {
260 PlayerBase player = PlayerBase.Cast( GetGame().GetPlayer() );
261 if (player && m_CurrentCategory != -1)
262 {
263 bool can = player.GetEmoteManager().CanPlayEmote(gesture_item.GetID()) && !player.GetEmoteManager().IsEmotePlaying();
264 gesture_item.SetCanPerformEmote(can);
265 }
266 }

References GetGame(), and GetPlayer().

◆ RadialQuickbarMenu()

void UIScriptedMenu::RadialQuickbarMenu ( )
inlineprivate

◆ RandomizeCharacter()

void UIScriptedMenu::RandomizeCharacter ( )
inlineprivate

Definition at line 248 of file charactercreationmenu.c.

249 {
250 m_Scene.GetIntroCharacter().SetToDefaultCharacter();
251
252 // make random selection
253 m_Scene.GetIntroCharacter().SetCharacterGender( Math.RandomInt(0, 2) );
254
255 if ( m_Scene.GetIntroCharacter().IsCharacterFemale() )
256 {
257 m_GenderSelector.SetValue( "Female" );
258 m_SkinSelector.LoadNewValues( m_Scene.GetIntroCharacter().GetCharList( ECharGender.Female ), 0 );
259 m_SkinSelector.SetRandomValue();
260 }
261 else
262 {
263 m_GenderSelector.SetValue( "Male" );
264 m_SkinSelector.LoadNewValues( m_Scene.GetIntroCharacter().GetCharList( ECharGender.Male ), 0 );
265 m_SkinSelector.SetRandomValue();
266 }
267
269
270 m_TopSelector.SetValue(GetGame().GetMenuDefaultCharacterData().GetAttachmentMap().Get(InventorySlots.BODY),false);
271 m_BottomSelector.SetValue(GetGame().GetMenuDefaultCharacterData().GetAttachmentMap().Get(InventorySlots.LEGS),false);
272 m_ShoesSelector.SetValue(GetGame().GetMenuDefaultCharacterData().GetAttachmentMap().Get(InventorySlots.FEET),false);
273
274 Refresh();
275 SetCharacter();
276
278 }
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].
array< ref PlayerStatBase > Get()

References CheckNewOptions(), MenuDefaultCharacterData::GenerateRandomEquip(), Get(), GetGame(), DayZIntroSceneXbox::GetIntroCharacter(), CGame::GetMenuDefaultCharacterData(), Math::RandomInt(), Refresh(), and SetCharacter().

Referenced by OnClick(), and Update().

◆ ReadBook()

void UIScriptedMenu::ReadBook ( InventoryItem  book)
inlineprivate

Definition at line 24 of file bookmenu.c.

25 {
26 m_content.LoadFile( book.ConfigGetString("file") );
27 m_author.SetText( book.ConfigGetString("author") );
28 m_title.SetText( book.ConfigGetString("title") );
29 m_content_total_height = m_content.GetContentHeight();
30 m_content_pos = 0;
31 NextPrevPage(false);
32 }

References NextPrevPage().

◆ Refresh() [1/9]

◆ Refresh() [2/9]

override void UIScriptedMenu::Refresh ( )
inlineprivate

Definition at line 602 of file ingamemenuxbox.c.

603 {
604 string version;
605 GetGame().GetVersion( version );
606 #ifdef PLATFORM_CONSOLE
607 version = "#main_menu_version" + " " + version + " (" + g_Game.GetDatabaseID() + ")";
608 #else
609 version = "#main_menu_version" + " " + version;
610 #endif
611 m_Version.SetText( version );
612
613 if( GetGame().IsMultiplayer() && layoutRoot.FindAnyWidget( "OnlineInfo" ).IsVisible() && m_ServerInfoPanel )
614 {
615 PlayerListEntryScriptedWidget selected = m_ServerInfoPanel.GetSelectedPlayer();
616 if( selected && !selected.IsLocalPlayer() )
617 {
618 layoutRoot.FindAnyWidget( "Mute" ).Show( !GetGame().GetWorld().IsDisabledReceivingVoN() && !selected.IsGloballyMuted() );
619 #ifndef PLATFORM_PS4
620 layoutRoot.FindAnyWidget( "Gamercard" ).Show( true );
621 #endif
622 SetMuteButtonText( selected.IsMuted() );
623 }
624 else
625 {
626 layoutRoot.FindAnyWidget( "Mute" ).Show( false );
627 layoutRoot.FindAnyWidget( "Gamercard" ).Show( false );
628 }
629 }
630 }

References g_Game, GetGame(), CGame::GetVersion(), and SetMuteButtonText().

◆ Refresh() [3/9]

override void UIScriptedMenu::Refresh ( )
inlineprivate

Definition at line 531 of file charactercreationmenu.c.

532 {
533 string name;
534 #ifdef PLATFORM_CONSOLE
535 if( GetGame().GetUserManager() && GetGame().GetUserManager().GetSelectedUser() )
536 {
538 if( name.LengthUtf8() > 16 )
539 {
540 name = name.SubstringUtf8(0, 16);
541 name += "...";
542 }
543 }
544 #else
545 name = m_Scene.GetIntroCharacter().GetCharacterName();
546 if( name == "" )
548 #endif
549
550 m_NameSelector.SetValue( name );
551
552 string version;
553 GetGame().GetVersion( version );
554 #ifdef PLATFORM_CONSOLE
555 version = "#main_menu_version" + " " + version + " (" + g_Game.GetDatabaseID() + ")";
556 m_ConsoleSave.Show(!m_CharacterSaved && m_Scene.GetIntroCharacter().IsDefaultCharacter());
557 m_Apply.Show(m_CharacterSaved || !m_Scene.GetIntroCharacter().IsDefaultCharacter());
558 m_Save.Show(!m_CharacterSaved && m_Scene.GetIntroCharacter().IsDefaultCharacter());
559 #else
560 version = "#main_menu_version" + " " + version;
561 m_Apply.Show(!m_Scene.GetIntroCharacter().IsDefaultCharacter());
562 m_Save.Show(m_Scene.GetIntroCharacter().IsDefaultCharacter());
563 #endif
564 m_PlayedCharacterInfo.Show(!m_Scene.GetIntroCharacter().IsDefaultCharacter());
565
566 if (m_Scene.GetIntroCharacter().IsDefaultCharacter())
567 {
568 m_CharacterHeaderText.SetText("#character_menu_header");
569 }
570 else
571 {
572 m_CharacterHeaderText.SetText("#server_browser_prev_play_filter");
573 }
574
575 m_Version.SetText( version );
576 }
proto native owned string GetName()
proto native int LengthUtf8()
Returns number of characters in UTF8 string.
proto string SubstringUtf8(int startChar, int len)
Substring of 'str' from 'startChar' position 'len' number of characters for UTF8 strings with multiby...

References GameConstants::DEFAULT_CHARACTER_NAME, g_Game, GetGame(), DayZIntroSceneXbox::GetIntroCharacter(), BiosUser::GetName(), BiosUserManager::GetSelectedUser(), CGame::GetUserManager(), CGame::GetVersion(), string::LengthUtf8(), name, and string::SubstringUtf8().

◆ Refresh() [4/9]

override void UIScriptedMenu::Refresh ( )
inlineprivate

Definition at line 321 of file keybindingsmenu.c.

322 {
323 string version;
324 GetGame().GetVersion( version );
325 #ifdef PLATFORM_CONSOLE
326 version = "#main_menu_version" + " " + version + " (" + g_Game.GetDatabaseID() + ")";
327 #else
328 version = "#main_menu_version" + " " + version;
329 #endif
330 m_Version.SetText( version );
331 }

References g_Game, GetGame(), and CGame::GetVersion().

◆ Refresh() [5/9]

override void UIScriptedMenu::Refresh ( )
inlineprivate

Definition at line 315 of file mainmenu.c.

316 {
317 string name;
318
319 if( m_ScenePC )
320 {
322 //name = m_ScenePC.GetIntroCharacter().GetCharacterName();
323 }
324
325 string version;
326 GetGame().GetVersion( version );
327 m_Version.SetText( "#main_menu_version" + " " + version );
328 }

References GetGame(), CGame::GetVersion(), name, and OnChangeCharacter().

◆ Refresh() [6/9]

override void UIScriptedMenu::Refresh ( )
inlineprivate

Definition at line 200 of file mainmenuconsoles.c.

201 {
202 string name;
203
204 if ( GetGame().GetUserManager() && GetGame().GetUserManager().GetSelectedUser() )
205 {
207 if ( name.LengthUtf8() > 18 )
208 {
209 name = name.SubstringUtf8(0, 18);
210 name += "...";
211 }
212 }
213 m_PlayerName.SetText( name );
214
215 string version;
216 GetGame().GetVersion( version );
217 m_Version.SetText( "#main_menu_version" + " " + version + " (" + g_Game.GetDatabaseID() + ")" );
218
219 if ( GetGame().GetMission() != null ) // if missionMainMenu still exist
220 {
221 if (m_Mission && !m_Mission.GetMenuMusic())
222 {
223 m_Mission.PlayMusic();
224 }
225 }
226 }

References g_Game, GetGame(), BiosUser::GetName(), BiosUserManager::GetSelectedUser(), CGame::GetUserManager(), CGame::GetVersion(), string::LengthUtf8(), m_Mission, m_PlayerName, name, and string::SubstringUtf8().

◆ Refresh() [7/9]

override void UIScriptedMenu::Refresh ( )
inlineprivate

Definition at line 580 of file optionsmenu.c.

581 {
582 string version;
583 GetGame().GetVersion( version );
584 #ifdef PLATFORM_CONSOLE
585 version = "#main_menu_version" + " " + version + " (" + g_Game.GetDatabaseID() + ")";
586 #else
587 version = "#main_menu_version" + " " + version;
588 #endif
589
590 m_Version.SetText( version );
591
592 #ifdef PLATFORM_CONSOLE
593 layoutRoot.FindAnyWidget( "play_panel_root" ).Show( GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer() );
594 #endif
595 }

References g_Game, GetGame(), GetInput(), and CGame::GetVersion().

◆ Refresh() [8/9]

override void UIScriptedMenu::Refresh ( )
inlineprivate

Definition at line 377 of file serverbrowsermenunew.c.

378 {
379 string name;
380
381 #ifdef PLATFORM_CONSOLE
382 if ( GetGame().GetUserManager() && GetGame().GetUserManager().GetSelectedUser() )
383 {
385 if ( name.LengthUtf8() > 18 )
386 {
387 name = name.SubstringUtf8(0, 18);
388 name += "...";
389 }
390 }
391 #else
392 g_Game.GetPlayerNameShort( 14, name );
393 #endif
394
395 if ( m_PlayerName )
396 m_PlayerName.SetText( name );
397
398 string version;
399 GetGame().GetVersion( version );
400 #ifdef PLATFORM_CONSOLE
401 version = "#main_menu_version" + " " + version + " (" + g_Game.GetDatabaseID() + ")";
402 #else
403 version = "#main_menu_version" + " " + version;
404 #endif
405 m_Version.SetText( version );
406 }

References g_Game, GetGame(), BiosUser::GetName(), BiosUserManager::GetSelectedUser(), CGame::GetUserManager(), CGame::GetVersion(), string::LengthUtf8(), m_PlayerName, name, and string::SubstringUtf8().

◆ Refresh() [9/9]

override void UIScriptedMenu::Refresh ( )
inlineprivate

Definition at line 944 of file sceneeditormenu.c.

945 {
947
948 string class_name = "n/a";
949 string pos_x = "n/a";
950 string pos_y = "n/a";
951 string pos_z = "n/a";
952 string rot = "n/a";
953 string hlt = "n/a";
954
955 // Clear attachments
956 for ( int i = 0; i < m_PrWidgetsAttachments.Count(); ++i )
957 {
958 m_PrWidgetsAttachments.Get(i).Hide();
959 }
960
961 if ( m_ModuleSceneManager.GetSelectedSceneObject() )
962 {
963 SceneObject obj = m_ModuleSceneManager.GetSelectedSceneObject();
964 vector v = obj.GetPosition();
965
966 class_name = obj.GetTypeName();
967 pos_x = v[0].ToString();
968 pos_y = v[1].ToString();
969 pos_z = v[2].ToString();
970 rot = obj.GetRotation().ToString();
971 hlt = obj.GetHealth().ToString();
972
973 ref TStringArray attachments_slots = obj.GetConfigAttachments();
974
975 float prop_h = 0.03;
976 float prop_count = attachments_slots.Count();
977 float prop_root_h = prop_h * (prop_count + 1);
978 float line_h = 1.0 / (prop_count + 1);
979
980 m_PrWgtAttRoot.SetSize(1, prop_root_h);
981 m_PrWgtAttTitle.SetSize(1, line_h);
982
983
984 EntityAI e = m_ModuleSceneManager.GetSelectedSceneObject().GetObject();
985
986 map<string, ref TStringArray> attachments_in_slots = GetItemNamesForSlots(attachments_slots);
987
988
989 for ( int j = 0; j < attachments_in_slots.Count(); ++j )
990 {
991 TStringArray attachments_in_slot = attachments_in_slots.GetElement(j);
992
994
995 ui_prop.Show(m_ModuleSceneManager.GetSelectedSceneObject().GetObject(), attachments_in_slots.GetKey(j), attachments_in_slot);
996 ui_prop.SetPos( 0, (1 + j) * line_h );
997 ui_prop.SetSize( 1, line_h );
998 }
999
1000 m_WgtBtnEditInitScript.Enable( true );
1001 }
1002 else
1003 {
1004 m_WgtBtnEditInitScript.Enable( false );
1005 }
1006
1008 m_PrWgtPoxX.SetText(pos_x);
1009 m_PrWgtPoxY.SetText(pos_y);
1010 m_PrWgtPoxZ.SetText(pos_z);
1011 m_PrWgtDir.SetText(rot);
1012 m_PrWgtDmg.SetText(hlt);
1013
1014 m_SlWgtLoadedScene.SetText("Loaded Scene: "+m_ModuleSceneManager.SceneGetName());
1015
1016 //Ruler
1017 if ( m_ModuleSceneManager.IsRulerActivated() )
1018 {
1019 m_WgtBtnDeleteRuler.SetColor( 0xFF5DE028 );
1020 }
1021 else
1022 {
1023 m_WgtBtnDeleteRuler.SetColor( 0xFFFFFFFF );
1024 }
1025
1026 }
float GetHealth()
Definition: sceneobject.c:433
TStringArray GetConfigAttachments()
Definition: sceneobject.c:582
float GetRotation()
Definition: sceneobject.c:487
vector GetPosition()
Definition: sceneobject.c:424
void SetSize(float width, float height)
void Show(EntityAI e, string slot_name, TStringArray att_items)
void SetPos(float x, float y)
UIPropertyAttachment GetFreeUIPropertyAttchament()
private map< string, ref TStringArray > GetItemNamesForSlots(TStringArray slots)
proto string ToString(bool beautify=true)
Vector to string.

References class_name, SceneObject::GetConfigAttachments(), GetFreeUIPropertyAttchament(), SceneObject::GetHealth(), GetItemNamesForSlots(), SceneObject::GetPosition(), SceneObject::GetRotation(), SceneObject::GetTypeName(), UIPropertyAttachment::SetPos(), UIPropertyAttachment::SetSize(), UIPropertyAttachment::Show(), float::ToString(), vector::ToString(), and UpdateListObjects().

◆ RefreshByLocalProfile()

protected void UIScriptedMenu::RefreshByLocalProfile ( )
private

◆ RefreshDateWidgets()

void UIScriptedMenu::RefreshDateWidgets ( int  year,
int  month,
int  day,
int  hour,
int  minute 
)
inlineprivate

Definition at line 336 of file scriptconsole.c.

337 {
338 float time01 = Math.InverseLerp(0,60*24 - 1, (hour * 60) + minute);
339 m_DateYear.SetText(year.ToString());
340 m_DateMonth.SetText(month.ToString());
341 m_DateDay.SetText(day.ToString());
342 m_DateHour.SetText(hour.ToString());
343 m_DateMinute.SetText(minute.ToString());
344 m_TimeSlider.SetCurrent(time01 * 100);
345 }
static proto float InverseLerp(float a, float b, float value)
Calculates the linear value that produces the interpolant value within the range [a,...

References Math::InverseLerp().

Referenced by Init(), and UpdateTime().

◆ RefreshGestures()

protected void UIScriptedMenu::RefreshGestures ( GestureCategories  category_id = -1)
inlineprivate

Definition at line 271 of file gesturesmenu.c.

272 {
273 //create gestures content (widgets) based on categories
274 if ( category_id > -1 )
275 {
276 GetGestureItems( m_GestureItems, category_id);
277 m_CurrentCategory = category_id;
278 }
279 else
280 {
283 instance.m_IsCategorySelected = false;
284 }
285
288 }

◆ RefreshLists() [1/2]

void UIScriptedMenu::RefreshLists ( )
inlineprivate

Definition at line 143 of file sceneeditormenu.c.

144 {
147 }

References RenderPresetItems(), and RenderPresets().

Referenced by DeletePreset(), NewPreset(), OnClick(), and RenamePreset().

◆ RefreshLists() [2/2]

void UIScriptedMenu::RefreshLists ( )
inlineprivate

Definition at line 1846 of file scriptconsole.c.

1847 {
1848 RenderPresets();
1850 }

References RenderPresetItems(), and RenderPresets().

◆ RefreshPlayerPosEditBoxes()

void UIScriptedMenu::RefreshPlayerPosEditBoxes ( )
inlineprivate

Definition at line 2501 of file scriptconsole.c.

2502 {
2503 //if ( GetGame() != NULL && GetGame().GetPlayer() != NULL )
2504 {
2505 vector player_pos = GetGame().GetPlayer().GetPosition();
2506 SetMapPos(player_pos);
2507 //m_PlayerCurPos.SetText( "Pos: "+ player_pos[0] +", "+ player_pos[1] +", "+ player_pos[2] );
2508 }
2509 }

References GetGame(), CGame::GetPlayer(), and SetMapPos().

Referenced by Update().

◆ RefreshQuickbar()

protected void UIScriptedMenu::RefreshQuickbar ( bool  reset_selection = true)
inlineprivate

Definition at line 245 of file radialquickbarmenu.c.

246 {
247 int selected_item_id = -1;
248 if ( !reset_selection )
249 {
250 RadialQuickbarItem quickbar_item;
251 if ( instance.m_SelectedItem )
252 {
253 instance.m_SelectedItem.GetUserData( quickbar_item );
254 selected_item_id = quickbar_item.GetId();
255 }
256 }
257
258 GetItems( m_Items );
259 //CheckForLightsAndNVG( m_Items );
260 CreateContent( selected_item_id );
261 }
protected void GetItems(out ref array< ref RadialQuickbarItem > items)
protected void CreateContent(int selected_item_id=-1)

References RadialQuickbarItem().

◆ ReloadOptions()

void UIScriptedMenu::ReloadOptions ( )
inlineprivate

Definition at line 456 of file optionsmenu.c.

457 {
458 m_Options = new GameOptions();
459
460 if ( m_GameTab )
461 m_GameTab.SetOptions( m_Options );
462 if ( m_SoundsTab )
463 m_SoundsTab.SetOptions( m_Options );
464 if ( m_ControlsTab )
465 m_ControlsTab.SetOptions( m_Options );
466
467 #ifndef PLATFORM_XBOX
468 if ( m_VideoTab )
469 m_VideoTab.SetOptions( m_Options );
470 #endif
471 }

◆ ReloadVideoOptions()

void UIScriptedMenu::ReloadVideoOptions ( )
inlineprivate

Definition at line 473 of file optionsmenu.c.

474 {
475 #ifndef PLATFORM_XBOX
476 if ( m_VideoTab )
477 m_VideoTab.SetOptions( m_Options );
478 #endif
479 }

◆ RemoveItemFromPreset() [1/2]

void UIScriptedMenu::RemoveItemFromPreset ( )
inlineprivate

Definition at line 258 of file sceneeditormenu.c.

259 {
260 if ( GetCurrentItemIndex() != -1 && GetCurrentPresetIndex() != -1 )
261 {
264 }
265 }

References GetCurrentItemIndex(), GetCurrentPresetIndex(), GetCurrentPresetName(), and RenderPresetItems().

Referenced by OnClick().

◆ RemoveItemFromPreset() [2/2]

void UIScriptedMenu::RemoveItemFromPreset ( )
inlineprivate

Definition at line 2116 of file scriptconsole.c.

2117 {
2118 if ( GetCurrentItemIndex() != -1 && GetCurrentPresetIndex() != -1 )
2119 {
2122 }
2123 }

References GetCurrentItemIndex(), GetCurrentPresetIndex(), GetCurrentPresetName(), and RenderPresetItems().

◆ RemoveMarker()

void UIScriptedMenu::RemoveMarker ( )
inlineprivate

Definition at line 297 of file mapmenu.c.

298 {
299 m_WasChanged = true;
300 }

◆ RenamePreset() [1/2]

void UIScriptedMenu::RenamePreset ( string  new_preset_name)
inlineprivate

Definition at line 149 of file sceneeditormenu.c.

150 {
151 if ( GetCurrentPresetIndex() != -1 )
152 {
153 bool result = m_ConfigDebugProfile.PresetRename( GetCurrentPresetName(), new_preset_name );
154 RefreshLists();
155 }
156 }

References GetCurrentPresetIndex(), GetCurrentPresetName(), and RefreshLists().

Referenced by OnClick().

◆ RenamePreset() [2/2]

void UIScriptedMenu::RenamePreset ( string  new_preset_name)
inlineprivate

Definition at line 1945 of file scriptconsole.c.

1946 {
1947 if ( new_preset_name && GetCurrentPresetIndex() != -1 )
1948 {
1949 bool result = m_ConfigDebugProfile.PresetRename( GetCurrentPresetName(), new_preset_name );
1950 RefreshLists();
1951 }
1952 }

References GetCurrentPresetIndex(), GetCurrentPresetName(), and RefreshLists().

◆ RenderPresetItems() [1/2]

void UIScriptedMenu::RenderPresetItems ( )
inlineprivate

Definition at line 159 of file sceneeditormenu.c.

160 {
161 // load preset items list
162 int i;
163 m_PresetItemsTextListbox.ClearItems();
164 if ( GetCurrentPresetIndex() != -1 )
165 {
166 bool isFixed = IsCurrentPresetFixed();
167 TStringArray preset_array = new TStringArray;
168
169 if ( isFixed )
170 {
171 m_ConfigDebugProfileFixed.GetPresetItems( GetCurrentPresetName(), preset_array );
172 }
173 else
174 {
175 m_ConfigDebugProfile.GetPresetItems( GetCurrentPresetName(), preset_array );
176 }
177
178 if ( preset_array )
179 {
180 for ( i = 0; i < preset_array.Count(); i++)
181 {
182 m_PresetItemsTextListbox.AddItem( preset_array.Get(i), NULL, 0);
183 }
184 }
185 }
186 }
bool IsCurrentPresetFixed()

References GetCurrentPresetIndex(), GetCurrentPresetName(), and IsCurrentPresetFixed().

Referenced by AddItemToPreset(), ItemMoveDown(), ItemMoveUp(), LateInit(), OnClick(), RefreshLists(), RemoveItemFromPreset(), and SelectPreset().

◆ RenderPresetItems() [2/2]

void UIScriptedMenu::RenderPresetItems ( )
inlineprivate

Definition at line 1893 of file scriptconsole.c.

1894 {
1895 // load preset items list
1896 int i;
1897 m_PresetItemsTextListbox.ClearItems();
1898 if ( GetCurrentPresetIndex() != -1 )
1899 {
1900 bool isFixed = IsCurrentPresetFixed();
1901 TStringArray preset_array = new TStringArray;
1902
1903 if ( isFixed )
1904 {
1905 m_ConfigDebugProfileFixed.GetPresetItems( GetCurrentPresetName(), preset_array );
1906 }
1907 else
1908 {
1909 m_ConfigDebugProfile.GetPresetItems( GetCurrentPresetName(), preset_array );
1910 }
1911
1912 if ( preset_array )
1913 {
1914 for ( i = 0; i < preset_array.Count(); i++)
1915 {
1916 m_PresetItemsTextListbox.AddItem( preset_array.Get(i), NULL, 0);
1917 }
1918 }
1919 }
1920 }

References GetCurrentPresetIndex(), GetCurrentPresetName(), and IsCurrentPresetFixed().

◆ RenderPresets() [1/2]

void UIScriptedMenu::RenderPresets ( )
inlineprivate

Definition at line 20 of file sceneeditormenu.c.

21 {
22 m_PresetsTextListbox.ClearItems();
23
24 int i;
25 TBoolArray preset_params;
26
27 // load fixed presets list
28 TStringArray presets_array = m_ConfigDebugProfileFixed.GetPresets();
29 for ( i = 0; i < presets_array.Count(); i++ )
30 {
31 m_PresetsTextListbox.AddItem( "["+presets_array.Get(i)+"]", new PresetParams ( presets_array.Get(i), true, false), 0);
32 }
33
34 // load custom presets list
35 TStringArray custom_presets_array = m_ConfigDebugProfile.GetPresets();
36 for ( i = 0; i < custom_presets_array.Count(); i++ )
37 {
38 m_PresetsTextListbox.AddItem( custom_presets_array.Get(i), new PresetParams ( custom_presets_array.Get(i),false, false), 0);
39 }
40
41 string default_preset = m_ConfigDebugProfile.GetDefaultPreset();
42 if ( default_preset != "" )
43 {
44 // if is fixed
45 int index = GetPresetIndexByName( default_preset );
46 if ( IsPresetFixed( default_preset) )
47 {
48 default_preset = "[" + default_preset + "]";
49 }
50 PresetParams preset_params_array;
51 if( index > -1 && index < m_PresetsTextListbox.GetNumItems() )
52 {
53 m_PresetsTextListbox.GetItemData( index, 0, preset_params_array );
54 m_PresetsTextListbox.SetItem( index, default_preset + CONST_DEFAULT_PRESET_PREFIX, preset_params_array, 0 );
55 }
56 }
57 }
const string CONST_DEFAULT_PRESET_PREFIX
bool IsPresetFixed(string preset_name)

References GetPresetIndexByName(), and IsPresetFixed().

Referenced by Init(), and RefreshLists().

◆ RenderPresets() [2/2]

void UIScriptedMenu::RenderPresets ( )
inlineprivate

Definition at line 1853 of file scriptconsole.c.

1854 {
1855 m_PresetsTextListbox.ClearItems();
1856
1857 int i;
1858 TBoolArray preset_params;
1859
1860 // load fixed presets list
1861 TStringArray presets_array = m_ConfigDebugProfileFixed.GetPresets();
1862 for ( i = 0; i < presets_array.Count(); i++ )
1863 {
1864 m_PresetsTextListbox.AddItem( "["+presets_array.Get(i)+"]", new PresetParams ( presets_array.Get(i), true, false), 0);
1865 }
1866
1867 // load custom presets list
1868 TStringArray custom_presets_array = m_ConfigDebugProfile.GetPresets();
1869 for ( i = 0; i < custom_presets_array.Count(); i++ )
1870 {
1871 m_PresetsTextListbox.AddItem( custom_presets_array.Get(i), new PresetParams ( custom_presets_array.Get(i),false, false), 0);
1872 }
1873
1874 string default_preset = m_ConfigDebugProfile.GetDefaultPreset();
1875 if ( default_preset != "" )
1876 {
1877 // if is fixed
1878 int index = GetPresetIndexByName( default_preset );
1879 if ( IsPresetFixed( default_preset) )
1880 {
1881 default_preset = "[" + default_preset + "]";
1882 }
1883 PresetParams preset_params_array;
1884 if( index > -1 && index < m_PresetsTextListbox.GetNumItems() )
1885 {
1886 m_PresetsTextListbox.GetItemData( index, 0, preset_params_array );
1887 m_PresetsTextListbox.SetItem( index, default_preset + CONST_DEFAULT_PRESET_PREFIX, preset_params_array, 0 );
1888 }
1889 }
1890 }

References GetPresetIndexByName(), and IsPresetFixed().

◆ RenderScaleRuler()

protected void UIScriptedMenu::RenderScaleRuler ( )
inlineprivate

1st segment

last segment

Definition at line 391 of file mapmenu.c.

392 {
393 float sizeYShift = 8;
395 int lineColor = FadeColors.BLACK;
396
397 for (int i = 1; i <= SCALE_RULER_NUM_SEGMENTS; i++)
398 {
399 lineColor = FadeColors.BLACK;
400 if (i % 2 == 0)
401 {
402 lineColor = FadeColors.LIGHT_GREY;
403 }
404
405 if (i == 1)
406 {
407 m_ToolsScaleCellSizeCanvas.DrawLine(0, sizeYShift, segmentLength, sizeYShift, SCALE_RULER_LINE_WIDTH, lineColor);
408 }
409 else if (i == SCALE_RULER_NUM_SEGMENTS)
410 {
411 m_ToolsScaleCellSizeCanvas.DrawLine(segmentLength * (SCALE_RULER_NUM_SEGMENTS - 1), sizeYShift, segmentLength * SCALE_RULER_NUM_SEGMENTS, sizeYShift, SCALE_RULER_LINE_WIDTH, lineColor);
412 }
413 else
414 {
415 m_ToolsScaleCellSizeCanvas.DrawLine(segmentLength * (i - 1), sizeYShift, segmentLength * i, sizeYShift, SCALE_RULER_LINE_WIDTH, lineColor);
416 }
417 }
418 }
protected const int SCALE_RULER_NUM_SEGMENTS
Definition: mapmenu.c:5
protected const int SCALE_RULER_LINE_WIDTH
Definition: mapmenu.c:4

References SCALE_RULER_NUM_SEGMENTS.

Referenced by Update().

◆ RenderVariables()

void UIScriptedMenu::RenderVariables ( int  row)
inlineprivate

Definition at line 2482 of file scriptconsole.c.

2483 {
2484 ConfigParamsEx config_params;
2485 if( row > -1 && row < m_ConfigHierarchyTextListbox.GetNumItems() )
2486 {
2487 m_ConfigHierarchyTextListbox.GetItemData( row, 0, config_params );
2488 m_ConfigVariablesTextListbox.ClearItems();
2489 TStringArray variables;
2490 string path = config_params.param4;
2491 variables = m_ModuleConfigViewer.GetConfigVariables( path );
2492 for ( int i = 0; i < variables.Count(); i++ )
2493 {
2494 m_ConfigVariablesTextListbox.AddItem( variables.Get(i), NULL, 0);
2495 }
2496 }
2497 }
string path

References path.

Referenced by OnClick().

◆ RequestRespawn()

bool UIScriptedMenu::RequestRespawn ( bool  random)
inlineprivate

Definition at line 237 of file respawndialogue.c.

238 {
239 Man player = GetGame().GetPlayer();
240 IngameHud.Cast(GetGame().GetMission().GetHud()).InitBadgesAndNotifiers();
241 if ( !player || (player.GetPlayerState() == EPlayerStates.ALIVE && !player.IsUnconscious()) )
242 return false;
243
244 #ifdef PLATFORM_CONSOLE
245 InGameMenuXbox menu_ingame = InGameMenuXbox.Cast(GetGame().GetUIManager().FindMenu(MENU_INGAME));
246 #else
247 InGameMenu menu_ingame = InGameMenu.Cast(GetGame().GetUIManager().FindMenu(MENU_INGAME));
248 #endif
249
250 if (!menu_ingame)
251 return false;
252
253 menu_ingame.MenuRequestRespawn(this,random);
254 return true;
255 }
void InGameMenuXbox()
const int MENU_INGAME
Definition: constants.c:155

References GetGame(), CGame::GetPlayer(), and MENU_INGAME.

Referenced by OnClick().

◆ Reset() [1/2]

void UIScriptedMenu::Reset ( )
inlineprivate

Undoes the unsaved changes and reverts to previous state. Does not reset to defaults!

Definition at line 253 of file keybindingsmenu.c.

254 {
256 m_Apply.SetFlags( WidgetFlags.IGNOREPOINTER );
258 m_Undo.SetFlags( WidgetFlags.IGNOREPOINTER );
259
260 m_GroupsContainer.Reset();
261 }

References ColorDisabled().

Referenced by OnClick(), and OnModalResult().

◆ Reset() [2/2]

void UIScriptedMenu::Reset ( )
inlineprivate

Definition at line 290 of file optionsmenu.c.

291 {
292 m_Options.Revert();
293 m_GameTab.Revert();
294 m_SoundsTab.Revert();
295 m_ControlsTab.Revert();
296 #ifndef PLATFORM_XBOX
297 m_VideoTab.Revert();
298 #endif
299
300 if ( m_Options.IsChanged() )
301 m_Options.Revert();
302
303 if (GetGame().GetInput().IsEnabledMouseAndKeyboard())
304 {
305 m_Apply.SetFlags( WidgetFlags.IGNOREPOINTER );
307 m_Reset.SetFlags( WidgetFlags.IGNOREPOINTER );
309 }
310
311 m_CanApplyOrReset = false;
312 #ifdef PLATFORM_CONSOLE
314 #endif
315 }

References ColorDisable(), GetGame(), GetInput(), and UpdateControlsElements().

◆ ResetCurrentTab()

void UIScriptedMenu::ResetCurrentTab ( )
inlineprivate

Definition at line 317 of file optionsmenu.c.

318 {
319 if ( m_Options.IsChanged() )
320 {
321 m_Options.Revert();
322 }
323
324 switch ( m_ActiveTabIdx )
325 {
326 case 0:
327 {
328 m_GameTab.Revert();
329 break;
330 }
331 case 1:
332 {
333 m_SoundsTab.Revert();
334 break;
335 }
336 case 2:
337 {
338 #ifdef PLATFORM_XBOX
339 m_ControlsTab.Revert();
340 #else
341 m_VideoTab.Revert();
342 #endif
343 break;
344 }
345 case 3:
346 {
347 #ifndef PLATFORM_XBOX
348 m_ControlsTab.Revert();
349 #endif
350 break;
351 }
352 }
353
354 if ( m_Options.IsChanged() )
355 {
356 m_Options.Revert();
357 }
358
359 if (GetGame().GetInput().IsEnabledMouseAndKeyboard())
360 {
361 m_Apply.SetFlags( WidgetFlags.IGNOREPOINTER );
363 m_Reset.SetFlags( WidgetFlags.IGNOREPOINTER );
365 }
366
367 m_CanApplyOrReset = false;
368 #ifdef PLATFORM_CONSOLE
370 #endif
371
372 m_Tabber.AlignTabbers();
373 }

References ColorDisable(), GetGame(), GetInput(), and UpdateControlsElements().

Referenced by OnAttemptTabSwitch(), OnClick(), OnModalResult(), and Update().

◆ ResetRunButtonColor()

void UIScriptedMenu::ResetRunButtonColor ( )
inlineprivate

Definition at line 633 of file scriptconsole.c.

634 {
635 m_EnfScriptRun.SetColor(m_RunColor);
636 }

◆ RespawnDialogue()

void UIScriptedMenu::RespawnDialogue ( )
inlineprivate

Definition at line 14 of file respawndialogue.c.

15 {
16 }

◆ RunEnscript()

void UIScriptedMenu::RunEnscript ( )
inlineprivate

Definition at line 606 of file scriptconsole.c.

607 {
608 #ifdef DEVELOPER
609 string code;
610 m_EnfScriptEdit.GetText(code);
612 bool success = GetGame().ExecuteEnforceScript("void scConsMain() \n{\n" + code + "\n}\n", "scConsMain");
613 ColorRunButton(success);
614
615 m_EnscriptConsoleHistory.Insert( code );
616 m_ModuleLocalEnscriptHistory.AddNewLine( code );
617 #endif
618 }
proto native bool ExecuteEnforceScript(string expression, string mainFnName)
Delevoper only: Executes Enforce Script expression, if there is an error, is printed into the script ...
protected PlayerBase _player
Definition: quickbarbase.c:18

References _player, ColorRunButton(), CGame::ExecuteEnforceScript(), GetGame(), and GetPlayer().

Referenced by OnClick().

◆ RunEnscriptServer()

void UIScriptedMenu::RunEnscriptServer ( )
inlineprivate

Definition at line 638 of file scriptconsole.c.

639 {
640 string code;
641 m_EnfScriptEdit.GetText(code);
642 m_EnscriptConsoleHistoryServer.Insert( code );
643 m_ModuleLocalEnscriptHistoryServer.AddNewLine( code );
645 GetGame().RPCSingleParam( GetGame().GetPlayer(), ERPCs.DEV_RPC_SERVER_SCRIPT, CachedObjectsParams.PARAM1_STRING, true, GetGame().GetPlayer().GetIdentity() );
646 }
void RPCSingleParam(Object target, int rpc_type, Param param, bool guaranteed, PlayerIdentity recipient=NULL)
see CGame.RPC
Definition: game.c:859
static ref Param1< string > PARAM1_STRING

References GetGame(), GetPlayer(), CachedObjectsParams::PARAM1_STRING, and CGame::RPCSingleParam().

Referenced by OnClick().

◆ Save()

void UIScriptedMenu::Save ( )
inlineprivate

saves default character

Definition at line 210 of file charactercreationmenu.c.

211 {
212 if ( m_Scene.GetIntroCharacter().IsDefaultCharacter() )
213 {
214 string name = m_NameSelector.GetValue();
215 if( name == "" )
217
218 m_Scene.GetIntroCharacter().SaveCharName(name);
219 m_Scene.GetIntroCharacter().SaveDefaultCharacter();
220 m_Scene.GetIntroCharacter().SetToDefaultCharacter();
221 SetCharacterSaved(true);
222 }
223 }

References GameConstants::DEFAULT_CHARACTER_NAME, DayZIntroSceneXbox::GetIntroCharacter(), name, and SetCharacterSaved().

Referenced by OnClick(), and Update().

◆ SaveData()

void UIScriptedMenu::SaveData ( )
inlineprivate

Definition at line 229 of file cameratoolsmenu.c.

230 {
231 if ( !FileExist( g_Game.GetMissionFolderPath() + "/CameraTools" ) )
232 MakeDirectory( g_Game.GetMissionFolderPath() + "/CameraTools" );
233
234 CTSaveStructure save_data = new CTSaveStructure();
235 save_data.m_InterpType = m_InterpTypeCombo.GetCurrentItem();
236 save_data.m_InterpSpeed = m_InterpTypeSpeedCombo.GetCurrentItem();
237 save_data.m_BlurValue = GetBlurValue();
238
239 foreach ( CTKeyframe keyframe : m_Cameras )
240 {
241 Param6<vector, vector, float, float, float, int> transform = new Param6<vector, vector, float, float, float, int>( keyframe.GetPosition(), keyframe.GetOrientation(), keyframe.GetInterpTime(), keyframe.GetFOV(), keyframe.GetDOF(), keyframe.GetPin() );
242 save_data.m_Cameras.Insert( transform );
243 }
244
245 foreach ( CTEvent event_t : m_Events )
246 {
247 Param4<int, int, float, bool> ev = new Param4<int, int, float, bool>( event_t.GetEventActor(), event_t.GetEventType(), event_t.GetEventTime(), event_t.GetEventWalk() );
248 save_data.m_Events.Insert( ev );
249 }
250
251 foreach ( CTActor actor_t : m_Actors )
252 {
253 Param5<vector, vector, string, ref array<string>, string> ac = new Param5<vector, vector, string, ref array<string>, string>( actor_t.GetPosition(), actor_t.GetRotation(), actor_t.GetActorType(), actor_t.GetItems(), actor_t.GetHandsItem() );
254 save_data.m_Actors.Insert( ac );
255 }
256
257 JsonFileLoader<ref CTSaveStructure>.JsonSaveFile( g_Game.GetMissionFolderPath() + "/CameraTools/keyframe_data.json", save_data );
258 }

References FileExist(), g_Game, CTSaveStructure::m_Actors, CTSaveStructure::m_BlurValue, CTSaveStructure::m_Cameras, CTSaveStructure::m_Events, CTSaveStructure::m_InterpSpeed, CTSaveStructure::m_InterpType, and MakeDirectory().

◆ SaveEvent()

void UIScriptedMenu::SaveEvent ( )
inlineprivate

Definition at line 355 of file cameratoolsmenu.c.

356 {
357
358 }

◆ SaveFavoriteServersConsoles()

void UIScriptedMenu::SaveFavoriteServersConsoles ( )
inlineprivate

Definition at line 544 of file serverbrowsermenunew.c.

545 {
546 GetGame().SetProfileStringList( "SB_Favorites", m_Favorites );
548
549 }
proto native void SetProfileStringList(string name, TStringArray values)
Sets array of strings to profile variable.

References GetGame(), CGame::SaveProfile(), and CGame::SetProfileStringList().

Referenced by Connect(), SetFavoriteConsoles(), and ~ServerBrowserMenuNew().

◆ SaveKeyframe()

void UIScriptedMenu::SaveKeyframe ( )
inlineprivate

Definition at line 283 of file cameratoolsmenu.c.

284 {
285 if ( m_SelectedKeyframe && Camera.GetCurrentCamera() )
286 {
287 m_SelectedKeyframe.SetPosition( Camera.GetCurrentCamera().GetWorldPosition() );
288 m_SelectedKeyframe.SetOrientation( Camera.GetCurrentCamera().GetOrientation() );
289 }
290 }

◆ SaveProfileSpawnDistance() [1/2]

void UIScriptedMenu::SaveProfileSpawnDistance ( )
inlineprivate

Definition at line 333 of file sceneeditormenu.c.

334 {
336 {
337 m_ConfigDebugProfile.SetSpawnDistance( m_SpawnDistanceEditBox.GetText().ToFloat() );
338 }
339 }

Referenced by OnClick(), and OnDoubleClick().

◆ SaveProfileSpawnDistance() [2/2]

void UIScriptedMenu::SaveProfileSpawnDistance ( )
inlineprivate

Definition at line 1937 of file scriptconsole.c.

1938 {
1940 {
1941 m_ConfigDebugProfile.SetSpawnDistance( m_SpawnDistanceEditBox.GetText().ToFloat() );
1942 }
1943 }

◆ SceneEditorCommand()

void UIScriptedMenu::SceneEditorCommand ( Param  params)
inlineprivate

Definition at line 1028 of file sceneeditormenu.c.

1029 {
1030 Param2<int, Param> p = Param2<int, Param>.Cast( params );
1031 int cmd_id = p.param1;
1032
1033 switch ( cmd_id )
1034 {
1035 case PluginSceneManager.SCENE_EDITOR_CMD_REFRESH:
1036 Refresh();
1037 break;
1038
1039 case PluginSceneManager.SCENE_EDITOR_CMD_SAVE:
1040 m_NotifyWgtPanel.SetAlpha(1.0);
1041 m_NotifyFadeTimer.FadeOut(m_NotifyWgtPanel, 2, true);
1042 break;
1043 }
1044 }

References Refresh().

Referenced by Dispatcher::SceneEditorCommand().

◆ SceneEditorMenu()

void UIScriptedMenu::SceneEditorMenu ( )
inlineprivate

Definition at line 362 of file sceneeditormenu.c.

363 {
364 m_ModuleSceneManager = PluginSceneManager.Cast( GetPlugin(PluginSceneManager) );
365 m_ModuleSceneManager.OnUIEditorOpened();
366
371 }
protected ref TStringArray m_ClClassesList
array< int > TIntArray
Definition: enscript.c:687

References GetPlugin().

◆ ScriptConsole()

void UIScriptedMenu::ScriptConsole ( )
inlineprivate

Definition at line 41 of file scriptconsole.c.

42 {
45 #ifndef SERVER
46 if (GetGame() && GetGame().GetMission() && GetGame().GetMission().GetHud())
47 {
50 }
51 #endif
52 }
class PluginLocalEnscriptHistory extends PluginLocalHistoryBase PluginLocalEnscriptHistoryServer()
void PluginLocalEnscriptHistory()

References GetGame(), Mission::GetHud(), CGame::GetMission(), GetPlugin(), PluginLocalEnscriptHistory(), PluginLocalEnscriptHistoryServer(), Hud::ShowHudPlayer(), and Hud::ShowQuickbarPlayer().

◆ ScriptConsoleNewPresetDialog()

void UIScriptedMenu::ScriptConsoleNewPresetDialog ( )
inlineprivate

Definition at line 3 of file scriptconsolenewpresetdialog.c.

4 {
5
6 }

◆ ScriptConsoleRenamePresetDialog()

void UIScriptedMenu::ScriptConsoleRenamePresetDialog ( )
inlineprivate

Definition at line 3 of file scriptconsolerenamepresetdialog.c.

4 {
5
6 }

◆ SecondaryAction()

protected void UIScriptedMenu::SecondaryAction ( Widget  w)
inlineprivate

Definition at line 694 of file radialquickbarmenu.c.

695 {
696 if ( instance.m_SelectedItem && m_CurrentCategory == RadialQuickbarCategory.DEFAULT )
697 {
698 if ( !GetGame().IsDedicatedServer() )
699 {
700 RadialQuickbarItem quickbar_item;
701 instance.m_SelectedItem.GetUserData( quickbar_item );
702
703 if ( quickbar_item )
704 {
705 PlayerBase player = PlayerBase.Cast( GetGame().GetPlayer() );
706 EntityAI item = quickbar_item.GetItem();
707
708 if ( item )
709 {
710 player.RadialQuickBarCombine( quickbar_item.GetId() + 1 ); //id must begin with 1 (simulating key press 1-9)
711 RefreshQuickbar( false );
712 }
713 }
714 }
715 }
716 }

References GetGame(), GetPlayer(), RadialQuickbarItem(), and RefreshQuickbar().

◆ SelectActor()

void UIScriptedMenu::SelectActor ( CTActor  ac)
inlineprivate

Definition at line 121 of file cameratoolsmenu.c.

122 {
123 m_SelectedActor = ac;
124 }
protected CTActor m_SelectedActor

◆ SelectEvent()

void UIScriptedMenu::SelectEvent ( CTEvent  ev)
inlineprivate

Definition at line 116 of file cameratoolsmenu.c.

117 {
118 m_SelectedEvent = ev;
119 }

◆ SelectKeyframe()

void UIScriptedMenu::SelectKeyframe ( CTKeyframe  kf)
inlineprivate

Definition at line 107 of file cameratoolsmenu.c.

108 {
109 if ( m_SelectedKeyframe )
110 m_SelectedKeyframe.Unselect();
111
113 m_SelectedKeyframe.Select();
114 }

◆ SelectNextTab()

void UIScriptedMenu::SelectNextTab ( )
inlineprivate

Definition at line 2714 of file scriptconsole.c.

2715 {
2716 int currTab = m_selected_tab;
2717 currTab = (currTab + 1) % TABS_COUNT;
2718
2719 while(currTab != m_selected_tab)
2720 {
2721 if (m_Tab_buttons[currTab] != NULL)
2722 {
2723 SelectTab(currTab);
2724 return;
2725 }
2726
2727 currTab = (currTab + 1) % TABS_COUNT;
2728 }
2729 }

References m_selected_tab, SelectTab(), and TABS_COUNT.

◆ SelectObject()

void UIScriptedMenu::SelectObject ( bool  hide_presets = true)
inlineprivate

◆ SelectPreset()

void UIScriptedMenu::SelectPreset ( )
inlineprivate

Definition at line 1819 of file scriptconsole.c.

1820 {
1821 m_ObjectsTextListbox.SelectRow(-1);
1826 m_SelectedObjectText.SetText( "Preset : " + m_SelectedObject );
1828
1829 TStringArray command_array = new TStringArray;
1830
1831 m_ConfigDebugProfileFixed.GetPresetItems( m_SelectedObject, command_array, "cmd" );
1832
1833 bool clear = false;
1834 if(command_array.IsValidIndex(0))
1835 {
1836 string first_line = command_array.Get(0);
1837 first_line.ToLower();
1838 clear = (first_line == "clear_inv");
1839 }
1840 m_ClearInventory.SetChecked(clear);
1841
1842
1843
1844 }
void ShowPresetButtons()

References GetCurrentPresetName(), m_SelectedObject, RenderPresetItems(), ShowItemTransferButtons(), ShowPresetButtons(), and string::ToLower().

Referenced by OnClick(), and OnItemSelected().

◆ SelectPreviousTab()

void UIScriptedMenu::SelectPreviousTab ( )
inlineprivate

Definition at line 2689 of file scriptconsole.c.

2690 {
2691 int currTab = m_selected_tab;
2692 currTab = (currTab - 1) % TABS_COUNT;
2693 if (currTab < 0)
2694 {
2695 currTab = TABS_COUNT - 1;
2696 }
2697
2698 while(currTab != m_selected_tab)
2699 {
2700 if (m_Tab_buttons[currTab] != NULL)
2701 {
2702 SelectTab(currTab);
2703 return;
2704 }
2705
2706 currTab = (currTab - 1) % TABS_COUNT;
2707 if (currTab < 0)
2708 {
2709 currTab = TABS_COUNT - 1;
2710 }
2711 }
2712 }

References m_selected_tab, SelectTab(), and TABS_COUNT.

◆ SelectServer() [1/2]

void UIScriptedMenu::SelectServer ( )
inlineprivate

Definition at line 476 of file ingamemenuxbox.c.

477 {
479 {
480 m_ServerInfoPanel.FocusFirst();
481
482 Refresh();
483 }
484 }

References Refresh().

Referenced by Connect().

◆ SelectServer() [2/2]

void UIScriptedMenu::SelectServer ( ServerBrowserEntry  server)
inlineprivate

Definition at line 551 of file serverbrowsermenunew.c.

552 {
553
554 if ( m_SelectedServer )
555 {
556 m_SelectedServer.Deselect();
557 }
558
559 m_SelectedServer = server;
560
561#ifdef PLATFORM_CONSOLE
562 // disable CONNECT button if server is offline
563 RichTextWidget aButton = RichTextWidget.Cast(layoutRoot.FindAnyWidget("ConnectIcon"));
564 TextWidget connectText = TextWidget.Cast( layoutRoot.FindAnyWidget( "ConnectText" ) );
565
566 aButton.Show(server.IsOnline());
567 connectText.Show(server.IsOnline());
568#endif
569 }

References m_SelectedServer.

◆ SelectTab()

void UIScriptedMenu::SelectTab ( int  tab_id)
inlineprivate

Definition at line 2731 of file scriptconsole.c.

2732 {
2733 int i = 0;
2734 Widget tab = m_Tabs[tab_id];
2735 for (i = 0; i < TABS_COUNT; i++)
2736 {
2737 Widget t = m_Tabs[i];
2738
2739 if( i == tab_id )
2740 {
2741 t.Show(true);
2742
2743 }
2744 else
2745 {
2746 t.Show(false);
2747 }
2748 }
2749 string text;
2750 int index;
2751 if ( tab_id == TAB_ENSCRIPT )
2752 {
2753 m_ScriptServer = false;
2754 tab.Show(true);//since both buttons point to the same tab, this will keep the tab visible for either tab selectioin(it's a hack)
2755 index = m_EnscriptConsoleHistory.Count() - m_EnscriptHistoryRow - 1;
2756 if ( m_EnscriptConsoleHistory.IsValidIndex(index) )
2757 {
2758 text = m_EnscriptConsoleHistory.Get(index);
2759 //Print("setting text client " + text);
2760 m_EnfScriptEdit.SetText(text);
2761 }
2762
2763 }
2764 else if ( tab_id == TAB_ENSCRIPT_SERVER)
2765 {
2766 m_ScriptServer = true;
2768 if ( m_EnscriptConsoleHistoryServer.IsValidIndex(index) )
2769 {
2770 text = m_EnscriptConsoleHistoryServer.Get(index);
2771 //Print("setting text server " + text);
2772 m_EnfScriptEdit.SetText( text );
2773 }
2774 }
2775
2776
2777 for (i = 0; i < TABS_COUNT; i++)
2778 {
2779 ButtonWidget button = m_Tab_buttons[i];
2780 button.SetState(i == tab_id);
2781 }
2782
2783 m_selected_tab = tab_id;
2784 m_ConfigDebugProfile.SetTabSelected(m_selected_tab);
2786 }
void OnTabSeleted(int tabID)

References string::Get(), OnTabSeleted(), and TABS_COUNT.

Referenced by Init(), OnClick(), SelectNextTab(), and SelectPreviousTab().

◆ ServerListFocus()

void UIScriptedMenu::ServerListFocus ( bool  focus,
bool  favorite 
)
inlineprivate

Definition at line 330 of file serverbrowsermenunew.c.

331 {
332 #ifdef PLATFORM_CONSOLE
333 TextWidget con_text = TextWidget.Cast( layoutRoot.FindAnyWidget( "ConnectText" ) );
334 TextWidget ref_text = TextWidget.Cast( layoutRoot.FindAnyWidget( "RefreshText" ) );
335 TextWidget res_text = TextWidget.Cast( layoutRoot.FindAnyWidget( "ResetText" ) );
336
337 if ( focus )
338 {
339 con_text.SetText( "#server_browser_menu_connect" );
340
341 float x, y;
342 res_text.GetSize( x, y );
343 if ( favorite )
344 {
345 res_text.SetText( "#server_browser_menu_unfavorite" );
346 }
347 else
348 {
349 res_text.SetText( "#server_browser_menu_favorite" );
350 }
351 con_text.Update();
352 res_text.Update();
353 }
354 #endif
355 }

References x, and y.

◆ SetBlurValue()

void UIScriptedMenu::SetBlurValue ( float  blur)
inlineprivate

Definition at line 709 of file cameratoolsmenu.c.

710 {
711 m_BlurEditWidget.SetText( blur.ToString() );
712 }

References float::ToString().

◆ SetCameraData()

float UIScriptedMenu::SetCameraData ( Param6< vector, vector, float, float, float, int transform1,
Param6< vector, vector, float, float, float, int transform2 
)
inlineprivate

Definition at line 645 of file cameratoolsmenu.c.

646 {
647 float int_value = transform1.param3;
648 if ( m_InterpTypeSpeedCombo.GetCurrentItem() == 1 )
649 {
650 int_value = vector.Distance( transform1.param1, transform2.param1 ) / int_value;
651 }
652 PlayerBase p;
653 float pQuat[4];
654 int b_index;
655 if ( transform1.param6 > -1 )
656 {
657 p = GetActor( transform1.param6 );
658 if ( p )
659 {
660 b_index = p.GetBoneIndexByName( "LeftHand_Dummy" );
661 m_FollowingBone = new Param2<int, int>(transform1.param6, b_index);
662 }
663 }
664 else
665 {
666 m_Camera1.SetPosition( transform1.param1 );
667 m_Camera1.SetOrientation( transform1.param2 );
668 m_FollowingBone = null;
669 }
670 m_Camera1.SetFOV( transform1.param4 * Math.DEG2RAD );
671 m_Camera1.SetFocus( transform1.param5, GetBlurValue() );
672
673 if ( transform2 )
674 {
675 if ( transform2.param6 > -1 )
676 {
677 pQuat[4];
678 p = GetActor( transform2.param6 );
679 if ( p )
680 {
681 b_index = p.GetBoneIndexByName( "LeftHand_Dummy" );
682 if ( b_index != -1 )
683 {
684 m_Camera2.SetPosition( p.GetBonePositionWS( b_index ) );
685
686 p.GetBoneRotationWS( b_index, pQuat);
687 vector v = Math3D.QuatToAngles( pQuat );
688 v[0] = fixAngle_180_180( v[0] - 180 );
689 v[1] = fixAngle_180_180( v[1] - 270 );
690 v[2] = fixAngle_180_180( v[2] + 90 );
691 DbgUI.Text( v.ToString() );
692 m_Camera2.SetYawPitchRoll( v );
693 }
694 }
695 }
696 else
697 {
698 m_Camera2.SetPosition( transform2.param1 );
699 m_Camera2.SetOrientation( transform2.param2 );
700 }
701
702 m_Camera2.SetFOV( transform2.param4 * Math.DEG2RAD );
703 m_Camera2.SetFocus( transform2.param5, GetBlurValue() );
704 }
705
706 return int_value;
707 }
Definition: dbgui.c:60
protected ref Param2< int, int > m_FollowingBone
static proto native float Distance(vector v1, vector v2)
Returns the distance between tips of two 3D vectors.
float fixAngle_180_180(float pAngle)
static proto native void Text(string label)
static proto vector QuatToAngles(float q[4])
Returns Angles vector from quaternion.
static const float DEG2RAD
Definition: enmath.c:17

References Math::DEG2RAD, vector::Distance(), fixAngle_180_180(), Math3D::QuatToAngles(), DbgUI::Text(), and vector::ToString().

◆ SetCharacter()

void UIScriptedMenu::SetCharacter ( )
inlineprivate

◆ SetCharacterSaved()

void UIScriptedMenu::SetCharacterSaved ( bool  state)
inlineprivate

Definition at line 763 of file charactercreationmenu.c.

764 {
765 #ifdef PLATFORM_CONSOLE
766 m_CharacterSaved = state;
767 Refresh();
768 #endif
769 }

References Refresh().

Referenced by BottomChanged(), GenderChanged(), Save(), ShoesChanged(), SkinChanged(), and TopChanged().

◆ SetCompassUIVisibility()

protected void UIScriptedMenu::SetCompassUIVisibility ( bool  pState)
inlineprivate

Definition at line 349 of file mapmenu.c.

350 {
352 {
353 m_ToolsCompassArrow.Show(pState);
354 }
355
357 {
358 m_ToolsCompassAzimuth.Show(pState);
359 }
360 }

Referenced by Init().

◆ SetDefaultPreset() [1/2]

void UIScriptedMenu::SetDefaultPreset ( int  preset_index)
inlineprivate

Definition at line 102 of file sceneeditormenu.c.

103 {
104 // remove previous default parameter
105 string default_preset = m_ConfigDebugProfile.GetDefaultPreset();
106 if ( default_preset != "" )
107 {
108 int index = GetPresetIndexByName( default_preset );
109 // if is fixed
110 if ( IsPresetFixed( default_preset) )
111 {
112 default_preset = "[" + default_preset + "]";
113 }
114 PresetParams prev_preset_params_array;
115 if( index > -1 && index < m_PresetsTextListbox.GetNumItems() )
116 {
117 m_PresetsTextListbox.GetItemData( index, 0, prev_preset_params_array );
118 prev_preset_params_array.param3 = false; // remove DEFAULT
119 m_PresetsTextListbox.SetItem( index, default_preset, prev_preset_params_array, 0 );
120 }
121 }
122
123 // set preset on preset_index to default
124 // if is fixed
125 string preset_name = GetCurrentPresetName();
126 if ( IsPresetFixed( preset_name) )
127 {
128 preset_name = "[" + preset_name + "]";
129 }
130 // set new default preset
131 PresetParams preset_params_array;
132 index = GetCurrentPresetIndex();
133 if ( index > -1 && index < m_PresetsTextListbox.GetNumItems() )
134 {
135 m_PresetsTextListbox.GetItemData( index, 0, preset_params_array );
136 preset_params_array.param3 = true; // DEFAULT
137 m_PresetsTextListbox.SetItem( index, preset_name + CONST_DEFAULT_PRESET_PREFIX, preset_params_array, 0 );
138 }
139 // store preset
140 m_ConfigDebugProfile.SetDefaultPreset( GetCurrentPresetName() );
141 }

References GetCurrentPresetIndex(), GetCurrentPresetName(), GetPresetIndexByName(), and IsPresetFixed().

Referenced by OnClick().

◆ SetDefaultPreset() [2/2]

void UIScriptedMenu::SetDefaultPreset ( int  preset_index)
inlineprivate

Definition at line 2006 of file scriptconsole.c.

2007 {
2008 // remove previous default parameter
2009 string default_preset = m_ConfigDebugProfile.GetDefaultPreset();
2010 if ( default_preset != "" )
2011 {
2012 int index = GetPresetIndexByName( default_preset );
2013 // if is fixed
2014 if ( IsPresetFixed( default_preset) )
2015 {
2016 default_preset = "[" + default_preset + "]";
2017 }
2018 PresetParams prev_preset_params_array;
2019 if( index > -1 && index < m_PresetsTextListbox.GetNumItems() )
2020 {
2021 m_PresetsTextListbox.GetItemData( index, 0, prev_preset_params_array );
2022 prev_preset_params_array.param3 = false; // remove DEFAULT
2023 m_PresetsTextListbox.SetItem( index, default_preset, prev_preset_params_array, 0 );
2024 }
2025 }
2026
2027 // set preset on preset_index to default
2028 // if is fixed
2029 string preset_name = GetCurrentPresetName();
2030 if ( IsPresetFixed( preset_name) )
2031 {
2032 preset_name = "[" + preset_name + "]";
2033 }
2034 // set new default preset
2035 PresetParams preset_params_array;
2036 index = GetCurrentPresetIndex();
2037 if ( index > -1 && index < m_PresetsTextListbox.GetNumItems() )
2038 {
2039 m_PresetsTextListbox.GetItemData( index, 0, preset_params_array );
2040 preset_params_array.param3 = true; // DEFAULT
2041 m_PresetsTextListbox.SetItem( index, preset_name + CONST_DEFAULT_PRESET_PREFIX, preset_params_array, 0 );
2042 }
2043 // store preset
2044 m_ConfigDebugProfile.SetDefaultPreset( GetCurrentPresetName() );
2045 }

References GetCurrentPresetIndex(), GetCurrentPresetName(), GetPresetIndexByName(), and IsPresetFixed().

◆ SetFavoriteConsoles()

bool UIScriptedMenu::SetFavoriteConsoles ( string  ipAddress,
int  port,
bool  favorite 
)
inlineprivate

Definition at line 231 of file serverbrowsermenunew.c.

232 {
233 if (favorite && m_Favorites.Count() >= MAX_FAVORITES)
234 {
235 g_Game.GetUIManager().ShowDialog("#layout_notification_info_warning", "#STR_MaxFavouriteReached", 0, DBT_OK, DBB_YES, DMT_EXCLAMATION, this);
236 return false;
237 }
238
239 AddFavorite(ipAddress, port, favorite);
241
242 return favorite;
243 }
void AddFavorite(string ipAddress, int port, bool favorite)

References AddFavorite(), g_Game, MAX_FAVORITES, and SaveFavoriteServersConsoles().

◆ SetGameVersion()

protected void UIScriptedMenu::SetGameVersion ( )
inlineprivate

Definition at line 69 of file ingamemenu.c.

70 {
71 TextWidget version_widget = TextWidget.Cast(layoutRoot.FindAnyWidget("version"));
72 string version;
73 GetGame().GetVersion(version);
74 version_widget.SetText("#main_menu_version" + " " + version);
75
76 #ifdef PREVIEW_BUILD
77 version_widget.SetText("THIS IS PREVIEW");
78 #endif
79 }

References GetGame(), and CGame::GetVersion().

Referenced by Init().

◆ SetGPSDirectionVisibility()

protected void UIScriptedMenu::SetGPSDirectionVisibility ( bool  pState)
inlineprivate

Definition at line 370 of file mapmenu.c.

371 {
373 {
374 m_GPSMarkerArrow.Show(pState);
375 }
376 }

Referenced by Init().

◆ SetGPSMarkerVisibility()

protected void UIScriptedMenu::SetGPSMarkerVisibility ( bool  pState)
inlineprivate

Definition at line 362 of file mapmenu.c.

363 {
364 if (m_GPSMarker)
365 {
366 m_GPSMarker.Show(pState);
367 }
368 }

Referenced by Init().

◆ SetItem()

void UIScriptedMenu::SetItem ( EntityAI  item)
inlineprivate

Definition at line 53 of file inspectmenunew.c.

54 {
55 if (item)
56 {
57 InspectMenuNew.UpdateItemInfo(layoutRoot, item);
58
59 if (!m_item_widget)
60 {
61 Widget preview_frame = layoutRoot.FindAnyWidget("ItemFrameWidget");
62 if (preview_frame)
63 {
64 m_item_widget = ItemPreviewWidget.Cast( preview_frame );
65 }
66 }
67
69 m_item_widget.SetView( item.GetViewIndex() );
71 PPERequesterBank.GetRequester(PPERequester_InventoryBlur).Start();
72 }
73 }
proto native void SetView(int viewIndex)
proto native void SetModelPosition(vector vPos)
void InspectMenuNew()

References ItemPreviewWidget::SetItem(), ItemPreviewWidget::SetModelPosition(), ItemPreviewWidget::SetView(), and Vector().

◆ SetItemToAssign()

static void UIScriptedMenu::SetItemToAssign ( EntityAI  item)
inlinestaticprivate

Definition at line 130 of file radialquickbarmenu.c.

131 {
132 m_ItemToAssign = item;
133 }

◆ SetLogoutTime()

void UIScriptedMenu::SetLogoutTime ( )
inlineprivate

Definition at line 120 of file logoutmenu.c.

121 {
122 m_LogoutTimeText.SetText(" ");
123 }

◆ SetMapPos()

void UIScriptedMenu::SetMapPos ( vector  pos)
inlineprivate

Definition at line 891 of file scriptconsole.c.

892 {
893 m_MapPos = pos;
894 m_PlayerCurPos.SetText( "Pos: "+ MiscGameplayFunctions.TruncateToS(pos[0]) +", "+ MiscGameplayFunctions.TruncateToS(pos[1]) +", "+ MiscGameplayFunctions.TruncateToS(pos[2]));
895 }

Referenced by OnMouseButtonDown(), and RefreshPlayerPosEditBoxes().

◆ SetMenuClosing() [1/2]

void UIScriptedMenu::SetMenuClosing ( bool  state)
inlineprivate

Definition at line 633 of file gesturesmenu.c.

634 {
635 m_IsMenuClosing = state;
636 }

◆ SetMenuClosing() [2/2]

void UIScriptedMenu::SetMenuClosing ( bool  state)
inlineprivate

Definition at line 781 of file radialquickbarmenu.c.

782 {
783 m_IsMenuClosing = state;
784 }

◆ SetMuteButtonText()

protected void UIScriptedMenu::SetMuteButtonText ( bool  isMuted)
inlineprivate

Set mute text button text (mute / unmute)

Definition at line 729 of file ingamemenuxbox.c.

730 {
731 TextWidget mute_text = TextWidget.Cast( layoutRoot.FindAnyWidget( "Mute" ).FindAnyWidget( "MuteText" ) );
732
733 if( isMuted )
734 {
735 mute_text.SetText( m_UnmuteButtonTextID );
736 }
737 else
738 {
739 mute_text.SetText( m_MuteButtonTextID );
740 }
741
742 mute_text.Update();
743 }

Referenced by Init(), and Refresh().

◆ SetObject()

void UIScriptedMenu::SetObject ( string  object)
inlineprivate

Definition at line 2047 of file scriptconsole.c.

2048 {
2049 m_SelectedObject = object;
2050
2051 if ( m_ConfigDebugProfile && m_ConfigDebugProfile.GetShowItemPreview() )
2052 {
2053 SetPreviewObject(object);
2054 }
2055
2056 }
void SetPreviewObject(string object)

References m_SelectedObject, and SetPreviewObject().

Referenced by LateInit(), OnClick(), OnItemSelected(), and SelectObject().

◆ SetPosition()

void UIScriptedMenu::SetPosition ( int  position)
inlineprivate

Definition at line 96 of file dayzgame.c.

97 {
98 if ( position != m_iPosition )
99 {
100 m_iPosition = position;
101 m_txtPosition.SetText(position.ToString());
102 }
103 }

◆ SetPreset()

void UIScriptedMenu::SetPreset ( bool  clear_inventory,
string  preset_name 
)
inlineprivate

spawn preset items into inventory

Definition at line 268 of file sceneeditormenu.c.

269 {
270 int i;
271 if ( GetCurrentPresetIndex() != -1 )
272 {
273 bool is_preset_fixed = IsCurrentPresetFixed();
274 TStringArray preset_array = new TStringArray;
275
276 if ( is_preset_fixed )
277 {
278 m_ConfigDebugProfileFixed.GetPresetItems( preset_name, preset_array );
279 }
280 else
281 {
282 m_ConfigDebugProfile.GetPresetItems( preset_name, preset_array );
283 }
284
285 PlayerBase player = PlayerBase.Cast( GetGame().GetPlayer() );
286 if ( clear_inventory )
287 {
288 m_Developer.ClearInventory(player);
289 }
290
291 for ( i = 0; i < preset_array.Count(); i++)
292 {
293 float health = -1;
294 int quantity = -1;
295 if ( is_preset_fixed )
296 {
297 health = m_ConfigDebugProfileFixed.GetItemHealth( preset_name, i );
298 quantity = m_ConfigDebugProfileFixed.GetItemQuantity( preset_name, i );
299 }
300 else
301 {
302 health = m_ConfigDebugProfile.GetItemHealth( preset_name, i );
303 quantity = m_ConfigDebugProfile.GetItemQuantity( preset_name, i );
304 }
305
306 m_Developer.SpawnEntityInInventory(player, preset_array.Get(i), health, quantity);
307 }
308 }
309 }

References GetCurrentPresetIndex(), GetGame(), GetPlayer(), and IsCurrentPresetFixed().

Referenced by OnDoubleClick().

◆ SetPreviewObject()

void UIScriptedMenu::SetPreviewObject ( string  object)
inlineprivate

Definition at line 2058 of file scriptconsole.c.

2059 {
2060 #ifdef DEVELOPER
2061 if (m_PreviewEntity)
2062 {
2063 m_PreviewEntity.Delete();
2064 }
2065
2066 if (!GetGame().IsKindOf(object, "DZ_LightAI") && !GetGame().IsKindOf(object, "Man"))
2067 {
2068 DayZGame.m_IsPreviewSpawn = true;
2069 m_PreviewEntity = EntityAI.Cast( GetGame().CreateObjectEx(object, "0 0 0", ECE_LOCAL));
2070 DayZGame.m_IsPreviewSpawn = false;
2071 if (m_PreviewEntity)
2072 {
2074 }
2075 }
2076 #endif
2077 }
const int ECE_LOCAL
void DayZGame()
Definition: dayzgame.c:791
bool IsKindOf(string type)
Check config class name of the object.
Definition: object.c:378

References DayZGame(), ECE_LOCAL, GetGame(), IsKindOf(), m_ItemPreviewWidget, and ItemPreviewWidget::SetItem().

Referenced by SetObject().

◆ SetRespawn()

void UIScriptedMenu::SetRespawn ( bool  value)
inlineprivate

Definition at line 225 of file dayzgame.c.

226 {
227 m_IsRespawn = value;
228 }

◆ SetServerInfo()

protected bool UIScriptedMenu::SetServerInfo ( )
inlineprivate

Definition at line 81 of file ingamemenu.c.

82 {
83 if (GetGame().IsMultiplayer())
84 {
85 //PlayerBase player = PlayerBase.Cast(GetGame().GetPlayer());
86 MenuData menu_data = g_Game.GetMenuData();
87 GetServersResultRow info = OnlineServices.GetCurrentServerInfo();
88
89 if (info)
90 {
91 //text
92 m_ServerPort.SetText(info.m_HostPort.ToString());
93 m_ServerIP.SetText(info.m_HostIp);
94 m_ServerName.SetText(info.m_Name);
95 //favorite
96 m_UnfavoriteImage.Show(info.m_Favorite);
97 m_FavoriteImage.Show(!info.m_Favorite);
98 m_ServerInfoText = "" + info.GetIpPort();
99
100 return true;
101 }
102 //temporary, incomplete solution, OnlineServices.GetCurrentServerInfo() should be working!
103 else if (menu_data && menu_data.GetLastPlayedCharacter() != GameConstants.DEFAULT_CHARACTER_MENU_ID)
104 {
105 int char_id = menu_data.GetLastPlayedCharacter();
106 int port;
107 string address,name;
108
109 menu_data.GetLastServerAddress(char_id,address);
110 port = menu_data.GetLastServerPort(char_id);
111 menu_data.GetLastServerName(char_id,name);
112 //text
113 m_ServerPort.SetText(port.ToString());
114 m_ServerIP.SetText(address);
115 m_ServerName.SetText(name);
116 //favorite
117 //m_FavoriteButton.Show(false); // buton should be non-functional in this case!
118 m_ServerInfoText = "" + address + ":" + port;
119
120 return true;
121 }
122 else
123 {
124 g_Game.RefreshCurrentServerInfo();
125 }
126 }
127 return false;
128 }
proto native int GetLastPlayedCharacter()
proto native int GetLastServerPort(int index)
proto void GetLastServerAddress(int index, out string address)
proto void GetLastServerName(int index, out string address)
static void GetCurrentServerInfo(string ip, int port)

References GameConstants::DEFAULT_CHARACTER_MENU_ID, g_Game, OnlineServices::GetCurrentServerInfo(), GetGame(), MenuData::GetLastPlayedCharacter(), MenuData::GetLastServerAddress(), MenuData::GetLastServerName(), MenuData::GetLastServerPort(), and name.

Referenced by Init().

◆ SetServerInfoVisibility()

void UIScriptedMenu::SetServerInfoVisibility ( bool  show)
inlineprivate

Definition at line 437 of file ingamemenu.c.

438 {
439 m_ServerInfoPanel.Show(show);
440 }

Referenced by Init().

◆ SetServersLoadingTab()

void UIScriptedMenu::SetServersLoadingTab ( TabType  refreshing)
inlineprivate

◆ SetStatus()

void UIScriptedMenu::SetStatus ( string  status)
inlineprivate

Definition at line 220 of file dayzgame.c.

221 {
222 m_txtDescription.SetText(status);
223 }

◆ SetTime() [1/2]

void UIScriptedMenu::SetTime ( int  time)
inlineprivate

Definition at line 212 of file dayzgame.c.

213 {
214 if (!m_IsRespawn)
215 m_txtLabel.SetText("#menu_loading_in " + time.ToString() + " #dayz_game_seconds");
216 else
217 m_txtLabel.SetText("#dayz_game_spawning_in " + time.ToString() + " #dayz_game_seconds");
218 }

Referenced by UpdateTime().

◆ SetTime() [2/2]

void UIScriptedMenu::SetTime ( int  time)
inlineprivate

Definition at line 125 of file logoutmenu.c.

126 {
127 m_iTime = time;
128 m_LogoutTimeText.SetText(m_iTime.ToString() + " #layout_logout_dialog_until_logout");
129 }

◆ SetToDefaults() [1/2]

void UIScriptedMenu::SetToDefaults ( )
inlineprivate

Definition at line 263 of file keybindingsmenu.c.

264 {
265 g_Game.GetUIManager().ShowDialog("#menu_default_cap", "#menu_default_desc", MODAL_ID_DEFAULT, DBT_YESNO, DBB_YES, DMT_QUESTION, this);
266 }

References g_Game.

Referenced by OnClick().

◆ SetToDefaults() [2/2]

void UIScriptedMenu::SetToDefaults ( )
inlineprivate

Definition at line 375 of file optionsmenu.c.

376 {
377 if (!g_Game.GetUIManager().IsDialogVisible() && !g_Game.GetUIManager().IsModalVisible())
378 {
379 g_Game.GetUIManager().ShowDialog("#menu_default_cap", "TODO - reset options to default", MODAL_ID_DEFAULT, DBT_YESNO, DBB_YES, DMT_QUESTION, this);
380 }
381 }

References g_Game.

◆ SetTooltipTexts() [1/2]

void UIScriptedMenu::SetTooltipTexts ( Widget  w,
string  header = "",
string  desc = "" 
)
inlineprivate

Definition at line 463 of file charactercreationmenu.c.

464 {
465 #ifndef PLATFORM_CONSOLE
466 bool show = header != "" && desc != "";
467 m_DetailsRoot.Show( show );
468 m_DetailsLabel.SetText( header );
469 m_DetailsText.SetText( desc );
470
471 //moves the widget to parent, setting is relative to widget alignment, case-specific implementation (getter missing!!!)
472 if (show)
473 {
474 float parent_pos_x, parent_pos_y;
475 float parent_size_x, parent_size_y;
476 float layout_size_x, layout_size_y;
477
478 w.GetScreenPos(parent_pos_x,parent_pos_y);
479 w.GetScreenSize(parent_size_x,parent_size_y);
480 layoutRoot.GetScreenSize(layout_size_x,layout_size_y);
481
482 /*Print("w.GetScreenPos: " + parent_pos_x + " | " + parent_pos_y);
483 Print("w.GetScreenSize: " + parent_size_x + " | " + parent_size_y);
484 Print("layoutRoot.GetScreenSize: " + layout_size_x + " | " + layout_size_y);
485 Print("---------------");*/
486 float set_x = layout_size_x - parent_pos_x;
487 float set_y = layout_size_y - parent_pos_y - parent_size_y;
488 //Print("result: " + set_x + ":" + set_y);
489 m_DetailsRoot.SetPos(set_x,set_y,true);
490 }
491
492 m_DetailsText.Update();
493 m_DetailsLabel.Update();
494 m_DetailsRoot.Update();
495 #endif
496 }

Referenced by OnFocus(), and OnMouseEnter().

◆ SetTooltipTexts() [2/2]

void UIScriptedMenu::SetTooltipTexts ( Widget  w,
string  header = "",
string  desc = "" 
)
inlineprivate

Definition at line 201 of file respawndialogue.c.

202 {
203 bool show = header != "" && desc != "";
204 m_DetailsRoot.Show( show );
205 m_DetailsLabel.SetText( header );
206 m_DetailsText.SetText( desc );
207
208 //moves the widget to parent, setting is relative to widget alignment, case-specific implementation (getter missing!!!)
209 /*if (show)
210 {
211 float parent_pos_x, parent_pos_y;
212 float parent_size_x, parent_size_y;
213 float layout_size_x, layout_size_y;
214
215 float root_pos_x, root_pos_y;
216 m_DetailsRoot.GetScreenPos(root_pos_x,root_pos_y);
217
218 w.GetPos(parent_pos_x,parent_pos_y);
219 w.GetScreenSize(parent_size_x,parent_size_y);
220 layoutRoot.GetScreenSize(layout_size_x,layout_size_y);
221
222 //Print("w.GetPos: " + parent_pos_x + " | " + parent_pos_y);
223 //Print("w.GetScreenSize: " + parent_size_x + " | " + parent_size_y);
224 //Print("layoutRoot.GetScreenSize: " + layout_size_x + " | " + layout_size_y);
225 //Print("---------------");
226 float set_x = parent_size_x; //constant pos
227 float set_y = 0;
228 //Print("result: " + set_x + " : " + set_y);
229 m_DetailsRoot.SetPos(set_x,set_y,true);
230 }*/
231
232 m_DetailsText.Update();
233 m_DetailsLabel.Update();
234 m_DetailsRoot.Update();
235 }

◆ SetUpperLegendVisibility()

protected void UIScriptedMenu::SetUpperLegendVisibility ( bool  pState)
inlineprivate

Definition at line 378 of file mapmenu.c.

379 {
381 {
382 m_UpperLegendContainer.Show(pState);
383 }
384
385 if (m_LegendResizer)
386 {
387 m_LegendResizer.ResizeParentToChild();
388 }
389 }

Referenced by Init().

◆ ShoesChanged()

void UIScriptedMenu::ShoesChanged ( )
inlineprivate

◆ Show() [1/3]

void UIScriptedMenu::Show ( )
inlineprivate

Definition at line 84 of file dayzgame.c.

85 {
86 if (layoutRoot)
87 layoutRoot.Show(true);
88 }

◆ Show() [2/3]

void UIScriptedMenu::Show ( )
inlineprivate

Definition at line 200 of file dayzgame.c.

201 {
202 if (layoutRoot)
203 layoutRoot.Show(true);
204 }

◆ Show() [3/3]

void UIScriptedMenu::Show ( )
inlineprivate

Definition at line 57 of file logoutmenu.c.

58 {
59 if (layoutRoot)
60 layoutRoot.Show(true);
61 }

◆ ShowAButton()

void UIScriptedMenu::ShowAButton ( bool  show)
inlineprivate

Definition at line 287 of file serverbrowsermenunew.c.

288 {
289 RichTextWidget aIcon = RichTextWidget.Cast(layoutRoot.FindAnyWidget("ConnectIcon"));
290 TextWidget aText = TextWidget.Cast( layoutRoot.FindAnyWidget( "ConnectText" ) );
291
292 if (aIcon)
293 {
294 aIcon.Show(show);
295 }
296
297 if (aText)
298 {
299 aText.Show(show);
300 }
301
302 }

◆ ShowItemButtons()

void UIScriptedMenu::ShowItemButtons ( )
inlineprivate

Definition at line 2222 of file scriptconsole.c.

2223 {
2224 if ( !IsCurrentPresetFixed() )
2225 {
2227
2228 string preset_name = GetCurrentPresetName();
2229 int item_index = GetCurrentItemIndex();
2230
2231 m_ItemMoveUpButton.Show(true);
2232 m_ItemMoveDownButton.Show(true);
2233
2234 m_ItemDamageLabel.Show( true );
2235 m_ItemQuantityLabel.Show( true );
2236
2237 if ( preset_name != "" && item_index > -1 )
2238 {
2239 m_DamageEditBox.Show( true );
2240 m_QuantityEditBox.Show( true );
2241 float item_health= m_ConfigDebugProfile.GetItemHealth( GetCurrentPresetName(), GetCurrentItemIndex() );
2242 int item_quantity = m_ConfigDebugProfile.GetItemQuantity( GetCurrentPresetName(), GetCurrentItemIndex() );
2243
2244 // damage
2245 m_DamageEditBox.SetText( item_health.ToString() );
2246
2247 // quantity
2248 m_QuantityEditBox.SetText( item_quantity.ToString() );
2249 // int stacked_max = GetGame().ConfigGetInt( CFG_VEHICLESPATH + " " + GetCurrentItemName() + " stackedMax");
2250 // m_QuantityEditBox.SetText( itoa( stacked_max ) );
2251 }
2252 else
2253 {
2254 m_DamageEditBox.Show( false );
2255 m_QuantityEditBox.Show( false );
2256 }
2257 }
2258 }

References GetCurrentItemIndex(), GetCurrentPresetName(), IsCurrentPresetFixed(), ShowItemTransferButtons(), and float::ToString().

Referenced by OnClick(), and OnItemSelected().

◆ ShowItemTransferButtons()

void UIScriptedMenu::ShowItemTransferButtons ( )
inlineprivate

Definition at line 2271 of file scriptconsole.c.

2272 {
2273 int object_row = m_ObjectsTextListbox.GetSelectedRow();
2274 if ( object_row >-1 && GetCurrentPresetIndex() >-1 && !IsCurrentPresetFixed() )
2275 {
2276 m_PresetAddItemtButton.Show( true );
2277 }
2278 else
2279 {
2280 m_PresetAddItemtButton.Show( false );
2281 }
2282
2284 {
2285 m_PresetRemoveItemButton.Show( true );
2286 }
2287 else
2288 {
2289 m_PresetRemoveItemButton.Show( false );
2290 }
2291
2292 if ( object_row > -1 )
2293 {
2294 m_ItemNameCopy.Show( true );
2295 }
2296 else
2297 {
2298 m_ItemNameCopy.Show( false );
2299 }
2300
2301 }

References GetCurrentItemIndex(), GetCurrentPresetIndex(), and IsCurrentPresetFixed().

Referenced by Init(), OnClick(), OnDoubleClick(), OnItemSelected(), SelectObject(), SelectPreset(), and ShowItemButtons().

◆ ShowPresetButtons()

void UIScriptedMenu::ShowPresetButtons ( )
inlineprivate

Definition at line 2091 of file scriptconsole.c.

2092 {
2093 bool show = true;
2094 if ( IsCurrentPresetFixed() )
2095 {
2096 show = false;
2097 }
2098 m_PresetDeleteButton.Show( show );
2099 m_PresetRenameButton.Show( show );
2100
2102
2103 }

References HideItemButtons(), and IsCurrentPresetFixed().

Referenced by SelectPreset().

◆ ShowYButton()

void UIScriptedMenu::ShowYButton ( bool  show)
inlineprivate

Definition at line 271 of file serverbrowsermenunew.c.

272 {
273 RichTextWidget yIcon = RichTextWidget.Cast(layoutRoot.FindAnyWidget("ResetIcon"));
274 TextWidget yText = TextWidget.Cast(layoutRoot.FindAnyWidget("ResetText"));
275
276 if (yIcon)
277 {
278 yIcon.Show(show);
279 }
280
281 if (yText)
282 {
283 yText.Show(show);
284 }
285 }

◆ SkinChanged()

void UIScriptedMenu::SkinChanged ( )
inlineprivate

Definition at line 297 of file charactercreationmenu.c.

298 {
299 m_Scene.GetIntroCharacter().CreateNewCharacterByName( m_SkinSelector.GetStringValue(), false );
300 SetCharacterSaved(false);
301
302 //layoutRoot.FindAnyWidget( "character_root" ).Show( m_Scene.GetIntroCharacter().IsDefaultCharacter() );
303 }

References DayZIntroSceneXbox::GetIntroCharacter(), and SetCharacterSaved().

◆ SliderFocus()

void UIScriptedMenu::SliderFocus ( )
inlineprivate

Definition at line 429 of file optionsmenu.c.

430 {
431 #ifdef PLATFORM_CONSOLE
432 m_CanToggle = false;
434 #endif
435 }

References UpdateControlsElements().

Referenced by OnFocus().

◆ SpawnPreset()

void UIScriptedMenu::SpawnPreset ( EntityAI  target,
bool  clear_inventory,
string  preset_name,
InventoryLocationType  location = InventoryLocationType.ATTACHMENT,
float  distance = 0 
)
inlineprivate

Definition at line 1955 of file scriptconsole.c.

1956 {
1957 // spawn preset items into inventory
1958 int i;
1959 PlayerBase player = PlayerBase.Cast(target);
1960 if ( GetCurrentPresetIndex() != -1 )
1961 {
1962 bool is_preset_fixed = IsCurrentPresetFixed();
1963 TStringArray preset_array = new TStringArray;
1964
1965 if ( is_preset_fixed )
1966 {
1967 m_ConfigDebugProfileFixed.GetPresetItems( preset_name, preset_array );
1968
1969 }
1970 else
1971 {
1972 m_ConfigDebugProfile.GetPresetItems( preset_name, preset_array );
1973 }
1974
1975 if ( clear_inventory )
1976 {
1977 m_Developer.ClearInventory(player);
1978 }
1979
1980 for ( i = 0; i < preset_array.Count(); i++)
1981 {
1982 float health = -1;
1983 int quantity = -1;
1984 if ( is_preset_fixed )
1985 {
1986 health = m_ConfigDebugProfileFixed.GetItemHealth( preset_name, i );
1987 quantity = m_ConfigDebugProfileFixed.GetItemQuantity( preset_name, i );
1988 }
1989 else
1990 {
1991 health = m_ConfigDebugProfile.GetItemHealth( preset_name, i );
1992 quantity = m_ConfigDebugProfile.GetItemQuantity( preset_name, i );
1993 }
1994 if(location == InventoryLocationType.ATTACHMENT)
1995 EntityAI ent = m_Developer.SpawnEntityInInventory(player, preset_array.Get(i), -1, quantity, false, preset_name);
1996 else if(location == InventoryLocationType.GROUND)
1997 {
1998 m_Developer.SpawnEntityOnCursorDir(player, preset_array.Get(i), quantity, distance, health, false, preset_name );
1999 }
2000 }
2001
2002 player.RPCSingleParam(ERPCs.DEV_RPC_SPAWN_PRESET, new Param1<string>(preset_name), true);
2003 }
2004 }

References GetCurrentPresetIndex(), and IsCurrentPresetFixed().

Referenced by OnClick().

◆ StartEnteringAlternateKeybind()

void UIScriptedMenu::StartEnteringAlternateKeybind ( int  key_index)
inlineprivate

Definition at line 140 of file keybindingsmenu.c.

141 {
144 }

◆ StartEnteringKeybind()

void UIScriptedMenu::StartEnteringKeybind ( int  key_index)
inlineprivate

Definition at line 128 of file keybindingsmenu.c.

129 {
131 m_CurrentSettingKeyIndex = key_index;
132 }

◆ StartupMenu()

void UIScriptedMenu::StartupMenu ( )
inlineprivate

Definition at line 3 of file startupmenu.c.

4 {
5 }

◆ Stop()

void UIScriptedMenu::Stop ( )
inlineprivate

Definition at line 430 of file cameratoolsmenu.c.

431 {
432 layoutRoot.Show( true );
433 GetGame().GetUIManager().ShowCursor( true );
434
435 m_Camera1.SetActive( false );
436 m_Camera2.SetActive( false );
437 FreeDebugCamera.GetInstance().SetActive(true);
438
440 m_IsPlaying = false;
441
442 foreach ( CTEvent ev : m_Events )
443 {
444 ev.Stop();
445 }
446
447 foreach ( CTActor ac : m_Actors )
448 {
449 ac.Reset();
450 ac.Show();
451 }
452
453 Camera.GetCurrentCamera().SetTransform(m_FreeflightCamTransform);
454 }
static proto native FreeDebugCamera GetInstance()
Returns reference to FreeDebugCamera (it's singleton, thus only one instance is present)

References GetGame(), Camera::GetInstance(), CGame::GetUIManager(), m_IsPlaying, and UIManager::ShowCursor().

◆ StopVideo()

void UIScriptedMenu::StopVideo ( )
inlineprivate

Definition at line 63 of file mainmenuvideo.c.

64 {
65 if( m_Video )
66 {
67 m_VideoPlayTimer.Stop();
68 m_Video.Play( VideoCommand.KILL );
70 }
71 }

References UIManager::Back(), GetGame(), and CGame::GetUIManager().

Referenced by PlayVideoLoop(), and Update().

◆ SyncEvent_OnRecievedPlayerList()

void UIScriptedMenu::SyncEvent_OnRecievedPlayerList ( SyncPlayerList  player_list)
inlineprivate

Definition at line 491 of file ingamemenuxbox.c.

492 {
493 m_ServerInfoPanel.Reload( player_list );
494
495 Refresh();
496 }

References Refresh().

◆ TitleScreenMenu()

void UIScriptedMenu::TitleScreenMenu ( )
inlineprivate

Definition at line 6 of file titlescreenmenu.c.

7 {
8 g_Game.SetGameState( DayZGameState.MAIN_MENU );
9 g_Game.SetLoadState( DayZLoadState.MAIN_MENU_START );
10 }

References g_Game.

◆ ToggleDependentOptions()

void UIScriptedMenu::ToggleDependentOptions ( int  mode,
bool  state 
)
inlineprivate

Controls visibility and sometimes even state of specific, dependent options across sub-menus.

Definition at line 446 of file optionsmenu.c.

447 {
448 m_GameTab.ToggleDependentOptions(mode,state);
449 m_SoundsTab.ToggleDependentOptions(mode,state);
450 m_ControlsTab.ToggleDependentOptions(mode,state);
451 #ifndef PLATFORM_XBOX
452 m_VideoTab.ToggleDependentOptions(mode,state);
453 #endif
454 }

◆ ToggleFavoriteServer()

void UIScriptedMenu::ToggleFavoriteServer ( )
inlineprivate

Definition at line 442 of file ingamemenu.c.

443 {
444 //TODO insert favorite mechanism here
445 GetServersResultRow info = OnlineServices.GetCurrentServerInfo();
446 bool favorite = !info.m_Favorite;
447
448 OnlineServices.SetServerFavorited(info.GetIP(), info.m_HostPort, info.m_SteamQueryPort, favorite);
449 m_UnfavoriteImage.Show(!favorite);
450 m_FavoriteImage.Show(favorite);
451 }
static void SetServerFavorited(string ipAddress, int port, int steamQueryPort, bool is_favorited)

References OnlineServices::GetCurrentServerInfo(), and OnlineServices::SetServerFavorited().

◆ ToggleFocus()

void UIScriptedMenu::ToggleFocus ( )
inlineprivate

Definition at line 437 of file optionsmenu.c.

438 {
439 #ifdef PLATFORM_CONSOLE
440 m_CanToggle = true;
442 #endif
443 }

References UpdateControlsElements().

Referenced by Init(), and OnFocus().

◆ ToggleVisibility()

void UIScriptedMenu::ToggleVisibility ( )
inlineprivate

Definition at line 936 of file sceneeditormenu.c.

937 {
938 m_WgtRoot.Show( m_ModuleSceneManager.IsOpened() );
939 }
protected Widget m_WgtRoot

References m_WgtRoot.

◆ TopChanged()

void UIScriptedMenu::TopChanged ( )
inlineprivate

◆ TryConnectLastSession()

bool UIScriptedMenu::TryConnectLastSession ( out string  ip,
out int  port 
)
inlineprivate

Definition at line 519 of file mainmenu.c.

520 {
521 if( g_Game.GetLastVisitedServer( ip, port ) )
522 {
523 return true;
524 }
525 return false;
526 }

References g_Game.

◆ UnmarkSelected() [1/2]

protected void UIScriptedMenu::UnmarkSelected ( Widget  w)
inlineprivate

Definition at line 549 of file gesturesmenu.c.

550 {
551 instance.m_SelectedItem = NULL;
552
553 if ( w )
554 {
555 GestureMenuItem gesture_item;
556 w.GetUserData( gesture_item );
557
558 //is not category
559 /*
560 if ( gesture_item && gesture_item.GetCategory() != GestureCategories.CATEGORIES )
561 {
562 //alter item visual
563 //TextWidget text_widget = TextWidget.Cast( gesture_item.GetRadialItemCard().FindAnyWidget( RADIAL_TEXT ) );
564 //text_widget.SetColor( ARGB( 255, 255, 255, 255 ) );
565 }
566 */
567 }
568 }

References GestureMenuItem().

◆ UnmarkSelected() [2/2]

protected void UIScriptedMenu::UnmarkSelected ( Widget  w)
inlineprivate

Definition at line 604 of file radialquickbarmenu.c.

605 {
606 m_SelectedItem = NULL;
607
608 /*
609 if ( w )
610 {
611 RadialQuickbarItem quickbar_item;
612 w.GetUserData( quickbar_item );
613
614 //is not category
615 if ( quickbar_item )
616 {
617 if ( quickbar_item.GetItem() )
618 {
619 //alter item visual
620 TextWidget text_widget = TextWidget.Cast( quickbar_item.GetRadialItemCard().FindAnyWidget( TEXT_ITEM_NAME ) );
621 text_widget.SetColor( ARGB( 255, 255, 255, 255 ) );
622 }
623 else
624 {
625 //alter item visual
626 TextWidget title_widget = TextWidget.Cast( quickbar_item.GetRadialItemCard().FindAnyWidget( TEXT_ITEM_TITLE ) );
627 title_widget.SetColor( ARGB( 255, 255, 255, 255 ) );
628 }
629 }
630 }
631 */
632 }

◆ Update() [1/24]

override void UIScriptedMenu::Update ( float  timeslice)
inlineprivate

Definition at line 65 of file dayzgame.c.

66 {
67 if ( GetGame().GetInput().LocalPress("UAUIBack", false) )
68 {
69 Leave();
70 }
71 }

References GetGame(), and GetInput().

◆ Update() [2/24]

override void UIScriptedMenu::Update ( float  timeslice)
inlineprivate

Definition at line 181 of file dayzgame.c.

182 {
183 if ( GetGame().GetInput().LocalPress("UAUIBack", false) )
184 {
185 Leave();
186 }
187 }

References GetGame(), and GetInput().

◆ Update() [3/24]

override void UIScriptedMenu::Update ( float  timeslice)
inlineprivate

Definition at line 494 of file cameratoolsmenu.c.

495 {
496
497 string camPos = MiscGameplayFunctions.TruncateVecToS(FreeDebugCamera.GetInstance().GetPosition(),0);
498 string camOri = MiscGameplayFunctions.TruncateVecToS(FreeDebugCamera.GetInstance().GetOrientation(),0);
499 m_CameraValues.SetText("Pos:" +camPos + " | Rot:" + camOri);
500
501 if (DiagMenu.GetBool(DiagMenuIDs.DM_ENABLE_REMOTE_CAMERA_BROADCAST))
502 {
503 Camera cam = Camera.GetCurrentCamera();
504
505 if (!cam && m_Camera1)
506 cam = m_Camera1;
507 if (cam)
508 {
509 Param4<vector, vector,float,float> p4 = new Param4<vector, vector,float,float>(GetGame().GetCurrentCameraPosition(),GetGame().GetCurrentCameraDirection(), cam.GetNearPlane(), cam.GetCurrentFOV());
510 GetGame().RPCSingleParam(null, ERPCs.DEV_CAMERA_TOOLS_CAM_DATA, p4, false);
511 }
512
513 }
514 if ( m_CameraLines && m_IsPlaying )
515 {
516 foreach ( CTEvent ev : m_Events )
517 {
518 if ( ev.IsTime( m_Time, m_Time + timeslice ) )
519 {
520 ev.Play();
521 }
522 }
523
524 m_Time += timeslice;
525
526 if ( !Camera.GetCurrentCamera() || !m_Camera1 || !m_Camera2 )
527 {
528 return;
529 }
530
531 if ( m_FollowingBone )
532 {
533 PlayerBase p = GetActor( m_FollowingBone.param1 );
534 if ( p )
535 {
536 vector pos = p.GetBonePositionWS( m_FollowingBone.param2 );
537
538 int bone_index = p.GetBoneIndexByName("LeftHand_Dummy");
539 float bone_rot[4];
540 p.GetBoneRotationWS( bone_index, bone_rot );
541
542 vector new_orient = Math3D.QuatToAngles(bone_rot);
543
544 //Print("Rot: "+ new_orient[0] +", "+ new_orient[1] +", "+ new_orient[2]);
545
546 float temp = new_orient[1];
547 new_orient[0] = new_orient[0] + 325; // vertical
548 new_orient[1] = new_orient[2] + 245;// horizontal
549 new_orient[2] = temp + 290; // tilt
550
551 //Print("PostRot: "+ new_orient[0] +", "+ new_orient[1] +", "+ new_orient[2]);
552
553 m_Camera1.SetPosition(pos);
554 m_Camera1.SetOrientation(new_orient);
555 }
556 }
557
558 if ( m_NextCameraIndex + 1 == m_CameraLines.Count() )
559 {
560 Stop();
562 foreach ( CTEvent ev2 : m_Events )
563 {
564 ev2.Stop();
565 }
566 return;
567 }
568
569 if ( Camera.GetCurrentCamera().GetPosition() == m_NextCamPosition || ( m_FollowingTimeFinished != -1 && m_Time >= m_FollowingTimeFinished ) )
570 {
571 int time;
572 if ( GetCameraLine( m_NextCameraIndex - 1 ).param6 > -1 )
573 {
575 GetCameraLine( m_NextCameraIndex ).param6 = -1;
576
578 }
579 else
580 {
582 }
583
585 if ( GetCameraLine( m_NextCameraIndex - 1 ).param6 > -1 )
586 {
588 m_NextCamPosition = "0 0 0";
589 m_Camera1.SetActive( true );
590 }
591 else if ( GetCameraLine( m_NextCameraIndex ) )
592 {
595 m_Camera1.SetActive( true );
596 m_Camera1.InterpolateTo( m_Camera2, time, m_InterpTypeCombo.GetCurrentItem() );
597 }
598 else
599 {
600 Stop();
602 FreeDebugCamera.GetInstance().SetOrientation( "0 0 0" );
603 foreach( CTEvent ev3 : m_Events )
604 {
605 ev3.Stop();
606 }
607 }
608 }
609 }
610 else
611 {
612 if ( m_Camera1.GetPosition() == m_NextCamPosition )
613 {
615 }
616
617 for ( int i = 0; i < ( m_Cameras.Count() - 1 ); i++ )
618 {
619 vector pos0 = m_Cameras.Get( i ).GetPosition();
620 vector pos1 = m_Cameras.Get( i + 1 ).GetPosition();
621 Debug.DrawArrow( pos0, pos1, 2, COLOR_RED, ShapeFlags.ONCE );
622 }
623
624 if ( m_SelectedActor )
625 {
626 if ( !g_Game.IsLeftCtrlDown() )
627 m_SelectedActor.SetPosition( GetMouseLookDir() );
628 else
629 {
630 vector from = m_SelectedActor.GetPosition();
631 vector to = GetMouseLookDir();
632 Debug.DrawArrow( from, to, 0.5, COLOR_RED, ShapeFlags.ONCE );
633 m_SelectedActor.SetRotation( vector.Direction( from,to ).Normalized().VectorToAngles() );
634 }
635
636 }
637
638 foreach ( CTActor ac : m_Actors )
639 {
640 ac.Update( timeslice );
641 }
642 }
643 }
static Shape DrawArrow(vector from, vector to, float size=0.5, int color=0xFFFFFFFF, int flags=0)
Definition: debug.c:371
vector GetMouseLookDir()
proto vector Normalized()
return normalized vector (keeps orginal vector untouched)
static vector Direction(vector p1, vector p2)
Returns direction vector from point p1 to point p2.
Definition: enconvert.c:214
proto vector VectorToAngles()
Converts vector to spherical coordinates with radius = 1.
DiagMenuIDs
Definition: ediagmenuids.c:2
static proto native bool GetBool(int id, bool reverse=false)

References COLOR_RED, vector::Direction(), Debug::DrawArrow(), DeveloperFreeCamera::EnableFreeCameraSceneEditor(), g_Game, DiagMenu::GetBool(), GetGame(), GetPlayer(), m_IsPlaying, m_Time, vector::Normalized(), Math3D::QuatToAngles(), CGame::RPCSingleParam(), Stop(), and vector::VectorToAngles().

◆ Update() [4/24]

override void UIScriptedMenu::Update ( float  timeslice)
inlineprivate

Definition at line 72 of file chatinputmenu.c.

73 {
74 if( GetGame().GetInput().LocalPress("UAUIBack", false ) )
75 {
76 Close();
77 }
78 }

References Close(), GetGame(), and GetInput().

◆ Update() [5/24]

override void UIScriptedMenu::Update ( float  timeslice)
inlineprivate

Definition at line 462 of file controlsxboxnew.c.

463 {
464 if (GetGame().GetInput().LocalPress("UAUITabLeft", false))
465 {
466 m_TabScript.PreviousTab();
467 }
468
469 if (GetGame().GetInput().LocalPress("UAUITabRight", false))
470 {
471 m_TabScript.NextTab();
472 }
473
474 if (GetGame().GetInput().LocalPress("UAUIBack", false))
475 {
476 Back();
477 }
478
479 if (GetGame().GetInput().LocalPress("UASwitchPreset",false))
480 {
483 m_TabScript.RefreshTab();
484 }
485 }
protected int m_CurrentTabIdx
protected void PerformSwitchPreset()

References Back(), GetGame(), GetInput(), m_TabScript, PerformSwitchPreset(), and UpdateTabContent().

◆ Update() [6/24]

override void UIScriptedMenu::Update ( float  timeslice)
inlineprivate

Definition at line 243 of file gesturesmenu.c.

244 {
245 super.Update(timeslice);
246
247 //RefreshGestures(m_CurrentCategory);
248 PlayerBase player = PlayerBase.Cast( GetGame().GetPlayer() );
249 if (m_CurrentCategory != GestureCategories.CATEGORIES && m_CurrentCategory != -1 && player)
250 {
251 for (int i = 0; i < m_GestureItems.Count(); i++)
252 {
254 }
255 }
256 }

References GetGame(), and GetPlayer().

◆ Update() [7/24]

override void UIScriptedMenu::Update ( float  timeslice)
inlineprivate

Definition at line 301 of file ingamemenu.c.

302 {
303 super.Update(timeslice);
304
305 UpdateGUI();
306 }
protected void UpdateGUI()
Definition: ingamemenu.c:308

References UpdateGUI().

◆ Update() [8/24]

override void UIScriptedMenu::Update ( float  timeslice)
inlineprivate

Definition at line 410 of file ingamemenuxbox.c.

411 {
412 UpdateGUI();
413
414 if( GetGame().IsMultiplayer() && layoutRoot.FindAnyWidget( "OnlineInfo" ).IsVisible() )
415 {
416 PlayerListEntryScriptedWidget selected;
418 selected = m_ServerInfoPanel.GetSelectedPlayer();
419 if( GetGame().GetInput().LocalPress( "UAUICtrlX", false ) )
420 {
421 if( selected )
422 m_ServerInfoPanel.ToggleMute( selected.GetUID() );
423 Refresh();
424 }
425
426 #ifndef PLATFORM_PS4
427 if( GetGame().GetInput().LocalPress( "UAUICtrlY", false ) )
428 {
429 if( selected )
430 OnlineServices.ShowUserProfile( selected.GetUID() );
431 }
432 #endif
433 }
434 }
static void ShowUserProfile(string uid)

References GetGame(), GetInput(), Refresh(), OnlineServices::ShowUserProfile(), and UpdateGUI().

◆ Update() [9/24]

override void UIScriptedMenu::Update ( float  timeslice)
inlineprivate

Definition at line 41 of file invitemenu.c.

42 {
43 if( GetGame().GetInput().LocalPress( "UAUIBack", false ) )
44 {
45 Cancel();
46 Close();
47 }
48
49 if (m_iTime <= 0)
50 {
52 string ip;
53 int port;
55 GetGame().GetCallQueue( CALL_CATEGORY_SYSTEM ).Call(g_Game.ConnectFromJoin, ip, port);
56 //Close();
57 }
58 }
static void GetInviteServerInfo(out string ip, out int port)

References ScriptCallQueue::Call(), CALL_CATEGORY_SYSTEM, Cancel(), Close(), g_Game, CGame::GetCallQueue(), GetGame(), GetInput(), OnlineServices::GetInviteServerInfo(), and ScriptCallQueue::Remove().

◆ Update() [10/24]

override void UIScriptedMenu::Update ( float  timeslice)
inlineprivate

Definition at line 111 of file logoutmenu.c.

112 {
113 if( GetGame().GetInput().LocalPress( "UAUIBack", false ) )
114 {
115 Hide();
116 Cancel();
117 }
118 }

References Cancel(), GetGame(), GetInput(), and Hide().

◆ Update() [11/24]

override void UIScriptedMenu::Update ( float  timeslice)
inlineprivate

Definition at line 199 of file mapmenu.c.

200 {
201 super.Update(timeslice);
203
204 PlayerBase player = PlayerBase.Cast(g_Game.GetPlayer());
205
207 {
208 if (m_Images)
209 {
210 m_MapWidgetInstance.RemoveChild(m_Images);
211 }
212
213 if (player)
214 {
215 m_ToolsScaleContourText.SetText(string.Format("%1 m", m_MapWidgetInstance.GetContourInterval()));
217 float rulerMaxDistance;
218 string rulerUnits;
220 m_ToolsScaleCellSizeText.SetText(string.Format("%1%2", rulerMaxDistance, rulerUnits));
221
223 {
225 float scale = 1 - m_MapWidgetInstance.GetScale();
226
227 if (m_HasCompass)
228 {
229 vector rot = player.GetYawPitchRoll();
230 float angle = Math.Round(rot[0]);
231 if (angle < 0)
232 {
233 angle = 360 + angle;
234 }
235
236 m_GPSMarkerArrow.SetRotation(0, 0, angle);
237 m_ToolsCompassArrow.SetRotation(0, 0, angle);
238 m_ToolsCompassAzimuth.SetText(string.Format("%1°", angle));
239 }
240
241 array<int> coords = MapNavigationBehaviour.OrderedPositionNumbersFromGridCoords(player);
243 {
244 m_GPSMarker.SetSize(scale * 100, scale * 100);
245 m_GPSMarkerArrow.SetSize(scale * 100, scale * 100);
246 float sizeX, sizeY;
247 m_GPSMarker.GetSize(sizeX, sizeY);
248 sizeX = Math.Round(sizeX);
249 sizeY = Math.Round(sizeY);
250 m_GPSMarker.SetPos(mapPos[0] - sizeX/2, mapPos[1] - sizeY/2);
251 m_GPSMarkerArrow.SetPos(mapPos[0] - sizeX/2, mapPos[1] - sizeY/2);
252
253 if (coords.Count() == m_MapNavigationBehaviour.DISPLAY_GRID_POS_MAX_CHARS_COUNT * 2 && coords[0] >= 0)
254 {
255 m_ToolsGPSXText.SetText(string.Format(COORD_FORMAT, coords[0], coords[1], coords[2]));
256 m_ToolsGPSYText.SetText(string.Format(COORD_FORMAT, coords[3], coords[4], coords[5]));
257 }
258 else
259 {
260 m_ToolsGPSXText.SetText("-.--");
261 m_ToolsGPSYText.SetText("-.--");
262 }
263
264 m_ToolsGPSElevationText.SetText(string.Format("%1m", Math.Round(player.GetPosition()[1])));
265 }
266 else
267 {
268 m_ToolsGPSXText.SetText("-.--");
269 m_ToolsGPSYText.SetText("-.--");
270 m_ToolsGPSElevationText.SetText("----m");
271 }
272 }
273 }
274
275 bool isClosedWithShortcut = CfgGameplayHandler.GetMapIgnoreMapOwnership() && GetGame().GetInput().LocalPress("UAMapToggle", false);
276 if (!m_IsOpenning && GetGame().GetInput() && (GetGame().GetInput().LocalPress("UAUIBack", false) || isClosedWithShortcut))
277 {
278 if (player)
279 {
280 player.SetLastMapInfo(m_MapWidgetInstance.GetScale(), m_MapWidgetInstance.GetMapPos());
281 }
282
283 CloseMapMenu();
284 }
285
286 m_IsOpenning = false;
287 }
288 }
proto native bool LocalPress(string action, bool check_focus=true)
proto native float GetCellSize(float pLegendWidth)
proto native float GetContourInterval()
proto native vector MapToScreen(vector worldPos)
proto native vector GetMapPos()
protected ImageWidget m_Images
Definition: mapmenu.c:19
protected void ProcessDistanceAndUnits(float num, out float dist, out string units)
Definition: mapmenu.c:420
protected void RenderScaleRuler()
Definition: mapmenu.c:391
protected const string COORD_FORMAT
Definition: mapmenu.c:3
void MapNavigationBehaviour(PlayerBase pPlayer, EMapNavigationType pNavigationType=EMapNavigationType.BASIC)

References CloseMapMenu(), g_Game, GetGame(), CGame::GetInput(), GetInput(), CfgGameplayHandler::GetMapIgnoreMapOwnership(), CfgGameplayHandler::GetMapIgnoreNavItemsOwnership(), Input::LocalPress(), MapNavigationBehaviour(), ProcessDistanceAndUnits(), RenderScaleRuler(), and Math::Round().

◆ Update() [12/24]

override void UIScriptedMenu::Update ( float  timeslice)
inlineprivate

Definition at line 578 of file charactercreationmenu.c.

579 {
580 if ( GetGame().GetInput().LocalPress("UAUIBack",false) )
581 {
582 Back();
583 }
584
585 if ( GetGame().GetInput().LocalPress("UAUICtrlX",false) )
586 {
588 }
589
590 #ifdef PLATFORM_CONSOLE
591 if ( GetGame().GetInput().LocalPress("UAUICtrlY",false) )
592 {
593 if ( m_Scene.GetIntroCharacter().IsDefaultCharacter() && !m_CharacterSaved )
594 {
595 Save();
596 }
597 }
598 #endif
599 }

References Back(), GetGame(), GetInput(), DayZIntroSceneXbox::GetIntroCharacter(), RandomizeCharacter(), and Save().

◆ Update() [13/24]

override void UIScriptedMenu::Update ( float  timeslice)
inlineprivate

Definition at line 67 of file creditsmenu.c.

68 {
69 float new_menu_val;
70 if( m_LogoFadeInLevel != 1 )
71 {
72 new_menu_val = m_MenuFadeInLevel + m_MenuFadeInIncrement * timeslice;
73 if( new_menu_val < 1 )
74 m_MenuFadeInLevel = new_menu_val;
75 else
77
78 if( m_MenuFadeInLevel > 0.5 )
79 {
80 float new_logo_val = m_LogoFadeInLevel + m_LogoFadeInIncrement * timeslice;
81 if( new_menu_val < 1 )
82 m_LogoFadeInLevel = new_logo_val;
83 else
85 }
86
87 layoutRoot.SetAlpha( m_MenuFadeInLevel );
88 m_Logo.SetAlpha( m_LogoFadeInLevel );
90 }
91 else if( m_ScrollLevel + m_ScrollSize <= m_Scroller.GetContentHeight() )
92 {
93 float new_scroll_val = m_ScrollLevel + m_ScrollIncrement * timeslice;
94 m_ScrollLevel = new_scroll_val;
95 m_Scroller.VScrollToPos( m_ScrollLevel );
96 }
97 else
98 {
99 new_menu_val = m_MenuFadeInLevel2 - m_MenuFadeInIncrement * timeslice;
100 if( new_menu_val > 0 )
101 m_MenuFadeInLevel2 = new_menu_val;
102 else
103 Close();
104
105 layoutRoot.SetAlpha( m_MenuFadeInLevel2 );
107 }
108
109 m_CurrentTime += timeslice;
110
111 if( GetGame().GetInput().LocalRelease("UAUIBack") )
112 {
113 Close();
114 }
115 }
protected float m_ScrollLevel
Definition: creditsmenu.c:13
protected float m_CurrentTime
Definition: creditsmenu.c:19
protected float m_LogoFadeInLevel
Definition: creditsmenu.c:11
protected float m_MenuFadeInLevel2
Definition: creditsmenu.c:9
protected float m_MenuFadeInLevel
Definition: creditsmenu.c:8

References Close(), GetGame(), and GetInput().

◆ Update() [14/24]

override void UIScriptedMenu::Update ( float  timeslice)
inlineprivate

Definition at line 170 of file keybindingsmenu.c.

171 {
172 if( GetGame().GetInput().LocalPress("UAUIBack",false) )
173 {
174 Back();
175 }
176
178 {
179 m_GroupsContainer.Update( timeslice );
180 }
181 }

References Back(), GetGame(), and GetInput().

◆ Update() [15/24]

override void UIScriptedMenu::Update ( float  timeslice)
inlineprivate

Definition at line 363 of file mainmenu.c.

364 {
365 super.Update( timeslice );
366
367 if( GetGame() && GetGame().GetInput() && GetGame().GetInput().LocalPress("UAUIBack", false) )
368 {
369 Exit();
370 }
371 }

References Exit(), GetGame(), and GetInput().

◆ Update() [16/24]

override void UIScriptedMenu::Update ( float  timeslice)
inlineprivate

Definition at line 257 of file mainmenuconsoles.c.

258 {
259 super.Update( timeslice );
260
261 if ( g_Game.GetLoadState() != DayZGameState.CONNECTING && !GetGame().GetUIManager().IsDialogVisible() )
262 {
263 #ifndef PLATFORM_CONSOLE
264 if (GetGame().GetInput().LocalPress("UAUIBack", false))
265 {
266 Exit();
267 }
268 #else
269 if (GetGame().GetInput().LocalPress("UAUICredits", false))
270 {
271 OpenCredits();
272 }
273 #endif
274 }
275
276 #ifdef PLATFORM_XBOX
277 if ( GetGame().GetInput().LocalPress("UAUICtrlY",false) )
278 {
280 }
281 #endif
282 if ( GetGame().GetInput().LocalPress("UAUICtrlX",false) )
283 {
284 if ( CanStoreBeOpened() )
285 {
286 m_ModsDetailed.GetHighlighted().GoToStore();
287 }
288 }
289 }

References CanStoreBeOpened(), ChangeAccount(), Exit(), g_Game, GetGame(), GetInput(), and OpenCredits().

◆ Update() [17/24]

override void UIScriptedMenu::Update ( float  timeslice)
inlineprivate

Definition at line 92 of file mainmenuvideo.c.

93 {
94 if( GetGame().GetInput().LocalPress("UAUICtrlX",false) )
95 {
96 //PlayPauseVideo();
97 }
98 if( GetGame().GetInput().LocalPress("UAUIBack",false) )
99 {
100 StopVideo();
101 }
102 }

References GetGame(), GetInput(), and StopVideo().

◆ Update() [18/24]

override void UIScriptedMenu::Update ( float  timeslice)
inlineprivate

Definition at line 372 of file tutorialsmenu.c.

373 {
374 if( GetGame().GetInput().LocalPress("UAUITabLeft",false) )
375 {
376 m_TabScript.PreviousTab();
377 }
378
379 //RIGHT BUMPER - TAB RIGHT
380 if( GetGame().GetInput().LocalPress("UAUITabRight",false) )
381 {
382 m_TabScript.NextTab();
383 }
384
385 if( GetGame().GetInput().LocalPress("UAUIBack",false) )
386 {
387 Back();
388 }
389 }

References Back(), GetGame(), GetInput(), and m_TabScript.

◆ Update() [19/24]

override void UIScriptedMenu::Update ( float  timeslice)
inlineprivate

Definition at line 604 of file optionsmenu.c.

605 {
606 super.Update( timeslice );
607
608 if (m_ModalLock)
609 {
610 m_ModalLock = false;
611 return;
612 }
613
614 if ( GetGame().GetInput().LocalPress("UAUITabLeft",false) )
615 {
616 m_Tabber.PreviousTab();
617 }
618 else if ( GetGame().GetInput().LocalPress("UAUITabRight",false) )
619 {
620 m_Tabber.NextTab();
621 }
622 else if ( GetGame().GetInput().LocalPress("UAUICtrlX",false) )
623 {
625 {
626 Apply();
627 }
628 }
629 else if ( GetGame().GetInput().LocalPress("UAUICredits",false) )
630 {
632 {
634 }
635
636 }
637 else if ( GetGame().GetInput().LocalPress("UAUICtrlY",false) )
638 {
639 //SetToDefaults();
641 }
642 else if ( GetGame().GetInput().LocalPress("UAUIBack",false) )
643 {
644 Back();
645 }
646 }

References Apply(), Back(), GetGame(), GetInput(), PerformSetToDefaults(), and ResetCurrentTab().

◆ Update() [20/24]

override void UIScriptedMenu::Update ( float  timeslice)
inlineprivate

Definition at line 408 of file serverbrowsermenunew.c.

409 {
410 if ( !GetGame().GetUIManager().IsDialogVisible() && !GetDayZGame().IsConnecting() )
411 {
412 if ( GetGame().GetInput().LocalPress("UAUITabLeft",false) )
413 {
414 m_Tabber.PreviousTab();
415 }
416
417 if ( GetGame().GetInput().LocalPress("UAUITabRight",false) )
418 {
419 m_Tabber.NextTab();
420 }
421
422 if ( GetGame().GetInput().LocalPress("UAUINextDown",false) )
423 {
425 }
426
427 if ( GetGame().GetInput().LocalPress("UAUINextUp",false) )
428 {
430 }
431
432 if ( GetGame().GetInput().LocalPress("UAUISelect",false) )
433 {
435 }
436
437 if ( GetGame().GetInput().LocalPress("UAUICtrlX",false) )
438 {
440 }
441
442 if ( GetGame().GetInput().LocalPress("UAUICtrlY",false) )
443 {
445 }
446
447 if ( GetGame().GetInput().LocalPress("UAUILeft",false) )
448 {
450 }
451
452 // LEFT HOLD
453 if ( GetGame().GetInput().LocalHold("UAUILeft",false) )
454 {
456 }
457
458 // LEFT RELEASE
459 if ( GetGame().GetInput().LocalRelease("UAUILeft",false) )
460 {
462 }
463
464 if ( GetGame().GetInput().LocalPress("UAUIRight",false) )
465 {
467 }
468
469 // RIGHT HOLD
470 if ( GetGame().GetInput().LocalHold("UAUIRight",false) )
471 {
473 }
474
475 // RIGHT RELEASE
476 if ( GetGame().GetInput().LocalRelease("UAUIRight",false) )
477 {
479 }
480
481 if ( GetGame().GetInput().LocalPress("UAUIUp",false) )
482 {
483 GetSelectedTab().Up();
484 }
485
486 if ( GetGame().GetInput().LocalPress("UAUIDown",false) )
487 {
488 GetSelectedTab().Down();
489 }
490
491 if ( GetGame().GetInput().LocalPress("UAUIBack",false) )
492 {
493 Back();
494 }
495 }
496
497 super.Update( timeslice );
498 }
override void PressSholderRight()
override void PressSholderLeft()
bool IsConnecting()
Definition: dayzgame.c:2804

References Back(), GetDayZGame(), GetGame(), GetInput(), GetSelectedTab(), IsConnecting(), ServerBrowserTab::Left(), ServerBrowserTab::LeftHold(), ServerBrowserTab::LeftRelease(), ServerBrowserTab::PressA(), ServerBrowserTab::PressSholderLeft(), ServerBrowserTab::PressSholderRight(), ServerBrowserTab::PressX(), ServerBrowserTab::PressY(), ServerBrowserTab::Right(), ServerBrowserTab::RightHold(), and ServerBrowserTab::RightRelease().

◆ Update() [21/24]

override void UIScriptedMenu::Update ( float  timeslice)
inlineprivate

Definition at line 130 of file notemenu.c.

131 {
132 super.Update( timeslice );
133
134 if( GetGame() && GetGame().GetInput() && GetGame().GetInput().LocalPress("UAUIBack", false) )
135 {
136 Close();
137 }
138 }

References Close(), GetGame(), and GetInput().

◆ Update() [22/24]

override void UIScriptedMenu::Update ( float  timeslice)
inlineprivate

Definition at line 34 of file respawndialogue.c.

35 {
36 super.Update( timeslice );
37 Input input = GetGame().GetInput();
38 if ( input.LocalPress( "UAUIBack", false ) || input.LocalPress( "UAUIMenu", false ))
39 {
40 Close();
41 }
42 //UAUIBack
43 //UAUIMenu
44 }

References Close(), GetGame(), CGame::GetInput(), and Input::LocalPress().

◆ Update() [23/24]

override void UIScriptedMenu::Update ( float  timeslice)
inlineprivate

Definition at line 802 of file scriptconsole.c.

803 {
804 super.Update( timeslice );
805 PlayerBase player = PlayerBase.Cast(GetGame().GetPlayer());
806 if ( GetGame() && GetGame().GetInput() && GetGame().GetInput().LocalPress("UAUIBack", false) )
807 {
809 }
811
812 if (m_UpdateMap)
813 {
815 {
816 if (rpd.m_Player != player)
817 {
818 vector dir = rpd.m_Pos - player.GetWorldPosition();
819 dir[1] = 0;
820 string dist = ((int)dir.Length()).ToString();
821 string text = rpd.m_Name + " " +dist +"m.";
822 m_DebugMapWidget.AddUserMark(rpd.m_Pos, text , COLOR_BLUE,"\\dz\\gear\\navigation\\data\\map_tree_ca.paa");
823 }
824 }
825 }
826 vector player_pos = player.GetWorldPosition();
827 m_DebugMapWidget.AddUserMark(player_pos,"You", COLOR_RED,"\\dz\\gear\\navigation\\data\\map_tree_ca.paa");
828 if (player_pos != GetMapPos())
829 m_DebugMapWidget.AddUserMark(GetMapPos(),"Pos", COLOR_BLUE,"\\dz\\gear\\navigation\\data\\map_tree_ca.paa");
833 }
proto native void ClearUserMarks()
void RefreshPlayerPosEditBoxes()
void UpdateMousePos()
proto native float Length()
Returns length of vector (magnitude)
const int COLOR_BLUE
Definition: constants.c:65
void RemotePlayerStatDebug(PlayerBase player)

References UIManager::Back(), COLOR_BLUE, COLOR_RED, GetGame(), GetInput(), GetMapPos(), GetPlayer(), CGame::GetUIManager(), int, vector::Length(), m_PlayerDebugStats, RefreshPlayerPosEditBoxes(), RemotePlayerStatDebug(), ToString(), and UpdateMousePos().

◆ Update() [24/24]

override void UIScriptedMenu::Update ( float  timeslice)
inlineprivate

Definition at line 77 of file titlescreenmenu.c.

78 {
79 super.Update( timeslice );
80
81 if( GetGame().GetInput().LocalPress("UAUISelect",false) )
82 {
83 #ifdef PLATFORM_WINDOWS
84 EnterScriptedMenu(MENU_MAIN);
85 #endif
86 #ifdef PLATFORM_XBOX
87 g_Game.GamepadCheck();
88 #endif
89 }
90 }

References g_Game, GetGame(), GetInput(), and MENU_MAIN.

◆ UpdateCategoryName()

protected void UIScriptedMenu::UpdateCategoryName ( string  name)
inlineprivate

Definition at line 443 of file gesturesmenu.c.

444 {
445 if ( !m_CategoryNameText )
446 {
447 m_CategoryNameText = TextWidget.Cast( layoutRoot.FindAnyWidget( CATEGORY_NAME ) );
448 }
449
450 m_CategoryNameText.SetText( name );
451 }
const string CATEGORY_NAME
Definition: gesturesmenu.c:118
protected TextWidget m_CategoryNameText
Definition: gesturesmenu.c:112

References name.

◆ UpdateChannel()

void UIScriptedMenu::UpdateChannel ( )
inlineprivate

Definition at line 80 of file chatinputmenu.c.

81 {
82 m_channel_text.SetText(GetChannelName(/*GetGame().ChatGetChannel()*/0));
83 }
static string GetChannelName(ChatChannel channel)
Definition: chatinputmenu.c:85

References GetChannelName().

Referenced by Init().

◆ UpdateControlsElements() [1/9]

protected void UIScriptedMenu::UpdateControlsElements ( )
inlineprivate

Definition at line 630 of file controlsxboxnew.c.

631 {
632 RichTextWidget toolbar_switch = RichTextWidget.Cast(layoutRoot.FindAnyWidget("ChangePresetIcon"));
633 RichTextWidget toolbar_back = RichTextWidget.Cast(layoutRoot.FindAnyWidget("BackIcon"));
634 toolbar_switch.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UASwitchPreset", "", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
635 toolbar_back.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUIBack", "", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
636 }

References InputUtils::GetRichtextButtonIconFromInputAction(), and InputUtils::ICON_SCALE_TOOLBAR.

Referenced by Apply(), Init(), OnChanged(), OnClick(), OnInputDeviceChanged(), OnInputPresetChanged(), OnShow(), PerformSetToDefaults(), Reset(), ResetCurrentTab(), SliderFocus(), and ToggleFocus().

◆ UpdateControlsElements() [2/9]

protected void UIScriptedMenu::UpdateControlsElements ( )
inlineprivate

Definition at line 638 of file gesturesmenu.c.

639 {
640 Widget toolbarBackSpacer = layoutRoot.FindAnyWidget("BackSpacer");
641 //Widget toolbarNavigateSpacer = layoutRoot.FindAnyWidget("NavigateSpacer");
642
643 RichTextWidget toolbarSelectIcon = RichTextWidget.Cast(layoutRoot.FindAnyWidget("SelectIcon"));
644 RichTextWidget toolbarBackIcon = RichTextWidget.Cast(layoutRoot.FindAnyWidget("BackIcon"));
645
646 string selectAction;
647 string backAction;
648 int controllerID;
649
650 if (GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer())
651 {
652 selectAction = "UAMenuSelect";
653 backAction = "UAMenuBack";
654 controllerID = EUAINPUT_DEVICE_KEYBOARDMOUSE;
655 }
656 else
657 {
658 selectAction = "UAUISelect";
659 backAction = "UAUIBack";
660 controllerID = EUAINPUT_DEVICE_CONTROLLER;
661 }
662
663 toolbarSelectIcon.SetText(InputUtils.GetRichtextButtonIconFromInputAction(selectAction, "", controllerID, InputUtils.ICON_SCALE_TOOLBAR));
664 toolbarBackIcon.SetText(InputUtils.GetRichtextButtonIconFromInputAction(backAction, "", controllerID, InputUtils.ICON_SCALE_TOOLBAR));
665 toolbarBackSpacer.Show(instance.m_IsCategorySelected);
666 }

References GetGame(), GetInput(), InputUtils::GetRichtextButtonIconFromInputAction(), and InputUtils::ICON_SCALE_TOOLBAR.

◆ UpdateControlsElements() [3/9]

protected void UIScriptedMenu::UpdateControlsElements ( )
inlineprivate

Definition at line 804 of file ingamemenuxbox.c.

805 {
806 RichTextWidget toolbar_a = RichTextWidget.Cast(layoutRoot.FindAnyWidget("SelectIcon"));
807 RichTextWidget toolbar_b = RichTextWidget.Cast(layoutRoot.FindAnyWidget("BackIcon"));
808 RichTextWidget toolbar_b2 = RichTextWidget.Cast(layoutRoot.FindAnyWidget("BackIcon0"));
809 RichTextWidget toolbar_x = RichTextWidget.Cast(layoutRoot.FindAnyWidget("MuteIcon"));
810 RichTextWidget toolbar_y = RichTextWidget.Cast(layoutRoot.FindAnyWidget("GamercardIcon"));
811 toolbar_a.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUISelect", "", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
812 toolbar_b.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUIBack", "", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
813 toolbar_b2.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUIBack", "", EUAINPUT_DEVICE_CONTROLLER));
814 toolbar_x.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUICtrlX", "", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
815 toolbar_y.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUICtrlY", "", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
816 }

References InputUtils::GetRichtextButtonIconFromInputAction(), and InputUtils::ICON_SCALE_TOOLBAR.

◆ UpdateControlsElements() [4/9]

protected void UIScriptedMenu::UpdateControlsElements ( )
inlineprivate

Definition at line 771 of file charactercreationmenu.c.

772 {
773 RichTextWidget toolbar_a = RichTextWidget.Cast(layoutRoot.FindAnyWidget("SelectIcon"));
774 RichTextWidget toolbar_b = RichTextWidget.Cast(layoutRoot.FindAnyWidget("BackIcon"));
775 RichTextWidget toolbar_b2 = RichTextWidget.Cast(layoutRoot.FindAnyWidget("BackIcon0"));
776 RichTextWidget toolbar_x = RichTextWidget.Cast(layoutRoot.FindAnyWidget("RandomizeIcon"));
777 RichTextWidget toolbar_x2 = RichTextWidget.Cast(layoutRoot.FindAnyWidget("RandomizeIcon0"));
778 RichTextWidget toolbar_y = RichTextWidget.Cast(layoutRoot.FindAnyWidget("save_consoleIcon"));
779 RichTextWidget toolbar_y2 = RichTextWidget.Cast(layoutRoot.FindAnyWidget("save_consoleIcon0"));
780 toolbar_a.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUISelect", "", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
781 toolbar_b.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUIBack", "", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
782 toolbar_b2.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUIBack", "", EUAINPUT_DEVICE_CONTROLLER));
783 toolbar_x.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUICtrlX", "", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
784 toolbar_x2.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUICtrlX", "", EUAINPUT_DEVICE_CONTROLLER));
785 toolbar_y.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUICtrlY", "", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
786 toolbar_y2.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUICtrlY", "", EUAINPUT_DEVICE_CONTROLLER));
787 }

References InputUtils::GetRichtextButtonIconFromInputAction(), and InputUtils::ICON_SCALE_TOOLBAR.

◆ UpdateControlsElements() [5/9]

protected void UIScriptedMenu::UpdateControlsElements ( )
inlineprivate

Definition at line 463 of file mainmenuconsoles.c.

464 {
465 RichTextWidget toolbar_text = RichTextWidget.Cast(layoutRoot.FindAnyWidget("ContextToolbarText"));
466 string context = InputUtils.GetRichtextButtonIconFromInputAction("UAUICredits", "#menu_credits", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR);
467
468 if ( CanStoreBeOpened() )
469 context += string.Format(" %1",InputUtils.GetRichtextButtonIconFromInputAction("UAUICtrlX", "#mod_detail_info_store", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
470
471#ifndef PLATFORM_PS4
472 context += string.Format(" %1",InputUtils.GetRichtextButtonIconFromInputAction("UAUICtrlY", "#layout_xbox_main_menu_toolbar_account", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
473#endif
474 context += string.Format(" %1",InputUtils.GetRichtextButtonIconFromInputAction("UAUISelect", "#layout_xbox_main_menu_toolbar_select", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
475
476 toolbar_text.SetText(context);
477 }
static proto string Format(string fmt, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
Gets n-th character from string.

References CanStoreBeOpened(), string::Format(), InputUtils::GetRichtextButtonIconFromInputAction(), and InputUtils::ICON_SCALE_TOOLBAR.

◆ UpdateControlsElements() [6/9]

protected void UIScriptedMenu::UpdateControlsElements ( )
inlineprivate

Definition at line 570 of file tutorialsmenu.c.

571 {
572 RichTextWidget toolbar_b = RichTextWidget.Cast(layoutRoot.FindAnyWidget("BackIcon"));
573 RichTextWidget toolbar_b2 = RichTextWidget.Cast(layoutRoot.FindAnyWidget("BackIcon0"));
574 toolbar_b.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUIBack", "", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
575 toolbar_b2.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUIBack", "", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
576 }

References InputUtils::GetRichtextButtonIconFromInputAction(), and InputUtils::ICON_SCALE_TOOLBAR.

◆ UpdateControlsElements() [7/9]

protected void UIScriptedMenu::UpdateControlsElements ( )
inlineprivate

Definition at line 766 of file optionsmenu.c.

767 {
769
770 if (toolbarShow)
771 {
772 RichTextWidget toolbar_text = RichTextWidget.Cast(layoutRoot.FindAnyWidget("ContextToolbarText"));
773 string text = "";
774 if (m_CanToggle)
775 {
776 text += string.Format(" %1",InputUtils.GetRichtextButtonIconFromInputAction("UAUISelect", "#dialog_change", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
777 }
779 {
780 text += string.Format(" %1",InputUtils.GetRichtextButtonIconFromInputAction("UAUICtrlX", "#STR_settings_menu_root_toolbar_bg_ConsoleToolbar_Apply_ApplyText0", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
781 }
782 text += string.Format(" %1",InputUtils.GetRichtextButtonIconFromInputAction("UAUICtrlY", "#menu_default", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
784 {
785 text += string.Format(" %1",InputUtils.GetRichtextButtonIconFromInputAction("UAUICredits", "#menu_undo", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
786 }
787 text += string.Format(" %1",InputUtils.GetRichtextButtonIconFromInputAction("UAUIBack", "#STR_settings_menu_root_toolbar_bg_ConsoleToolbar_Back_BackText0", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
788 toolbar_text.SetText(text);
789 }
790 else
791 {
792 RichTextWidget toolbar_b2 = RichTextWidget.Cast(layoutRoot.FindAnyWidget("BackIcon0"));
793 RichTextWidget toolbar_x2 = RichTextWidget.Cast(layoutRoot.FindAnyWidget("ApplyIcon0"));
794 RichTextWidget toolbar_y2 = RichTextWidget.Cast(layoutRoot.FindAnyWidget("ResetIcon0"));
795 RichTextWidget toolbar_def2 = RichTextWidget.Cast(layoutRoot.FindAnyWidget("DefaultIcon0"));
796 toolbar_b2.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUIBack", "", EUAINPUT_DEVICE_CONTROLLER));
797 toolbar_x2.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUICtrlX", "", EUAINPUT_DEVICE_CONTROLLER));
798 toolbar_y2.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUICredits", "", EUAINPUT_DEVICE_CONTROLLER));
799 toolbar_def2.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUICtrlY", "", EUAINPUT_DEVICE_CONTROLLER));
800 }
801
802 layoutRoot.FindAnyWidget("toolbar_bg").Show(toolbarShow);
803 }

References string::Format(), GetGame(), CGame::GetInput(), InputUtils::GetRichtextButtonIconFromInputAction(), InputUtils::ICON_SCALE_TOOLBAR, and Input::IsEnabledMouseAndKeyboardEvenOnServer().

◆ UpdateControlsElements() [8/9]

protected void UIScriptedMenu::UpdateControlsElements ( )
inlineprivate

Definition at line 821 of file serverbrowsermenunew.c.

822 {
823 RichTextWidget toolbar_a = RichTextWidget.Cast(layoutRoot.FindAnyWidget("ConnectIcon"));
824 RichTextWidget toolbar_b = RichTextWidget.Cast(layoutRoot.FindAnyWidget("BackIcon"));
825 RichTextWidget toolbar_x = RichTextWidget.Cast(layoutRoot.FindAnyWidget("RefreshIcon"));
826 RichTextWidget toolbar_y = RichTextWidget.Cast(layoutRoot.FindAnyWidget("ResetIcon"));
827 toolbar_a.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUISelect", "", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
828 toolbar_b.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUIBack", "", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
829 toolbar_x.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUICtrlX", "", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
830 toolbar_y.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUICtrlY", "", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
831 }

References InputUtils::GetRichtextButtonIconFromInputAction(), and InputUtils::ICON_SCALE_TOOLBAR.

◆ UpdateControlsElements() [9/9]

protected void UIScriptedMenu::UpdateControlsElements ( )
inlineprivate

Definition at line 786 of file radialquickbarmenu.c.

787 {
788 Widget toolbarBackSpacer = layoutRoot.FindAnyWidget("BackSpacer");
789 //Widget toolbarNavigateSpacer = layoutRoot.FindAnyWidget("Navigate");
790
791 RichTextWidget toolbarSelectIcon = RichTextWidget.Cast(layoutRoot.FindAnyWidget("SelectIcon"));
792 RichTextWidget toolbarBackIcon = RichTextWidget.Cast(layoutRoot.FindAnyWidget("BackIcon"));
793
794 string selectAction;
795 string backAction;
796 int controllerID;
797
798 if (GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer())
799 {
800 selectAction = "UAMenuSelect";
801 backAction = "UAMenuBack";
802 controllerID = EUAINPUT_DEVICE_KEYBOARDMOUSE;
803 }
804 else
805 {
806 selectAction = "UAUISelect";
807 backAction = "UAUIBack";
808 controllerID = EUAINPUT_DEVICE_CONTROLLER;
809 }
810
811 toolbarSelectIcon.SetText(InputUtils.GetRichtextButtonIconFromInputAction(selectAction, "", controllerID, InputUtils.ICON_SCALE_TOOLBAR));
812 toolbarBackIcon.SetText(InputUtils.GetRichtextButtonIconFromInputAction(backAction, "", controllerID, InputUtils.ICON_SCALE_TOOLBAR));
813 toolbarBackSpacer.Show(m_CurrentCategory != RadialQuickbarCategory.DEFAULT);
814 }

References GetGame(), GetInput(), InputUtils::GetRichtextButtonIconFromInputAction(), and InputUtils::ICON_SCALE_TOOLBAR.

◆ UpdateGUI() [1/2]

protected void UIScriptedMenu::UpdateGUI ( )
inlineprivate

Definition at line 308 of file ingamemenu.c.

309 {
310 Man player = GetGame().GetPlayer();
311 bool player_is_alive = false;
312
313 if (player)
314 {
315 int life_state = player.GetPlayerState();
316
317 if (life_state == EPlayerStates.ALIVE)
318 {
319 player_is_alive = true;
320 }
321 }
322
323 #ifdef BULDOZER
324 m_RestartButton.Show(false);
325 m_RespawnButton.Show(false);
326 #else
327 if (GetGame().IsMultiplayer())
328 {
329 m_RestartButton.Show(player_is_alive && player.IsUnconscious());
330 m_RespawnButton.Show(!player_is_alive);
331 //m_RestartDeadCustomButton.Show(!player_is_alive && GetGame().GetMission().GetRespawnModeClient() == GameConstants.RESPAWN_MODE_CUSTOM);
332 //m_RestartDeadRandomButton.Show(!player_is_alive);
333 }
334 else
335 {
336 m_RestartButton.Show(true);
337 m_RespawnButton.Show(false);
338 //m_RestartDeadCustomButton.Show(false);
339 //m_RestartDeadRandomButton.Show(false);
340 }
341 m_ContinueButton.Show(player_is_alive);
342 #endif
343 }

References GetGame(), and CGame::GetPlayer().

Referenced by Update().

◆ UpdateGUI() [2/2]

void UIScriptedMenu::UpdateGUI ( )
inlineprivate

Definition at line 436 of file ingamemenuxbox.c.

437 {
438 Man player = GetGame().GetPlayer();
439 if (player)
440 {
441 int life_state = player.GetPlayerState();
442 m_PlayerAlive = life_state == EPlayerStates.ALIVE;
443 }
444
445 if ( m_PlayerAlive )
446 {
447 m_RestartButton.Show( player.IsUnconscious() );
448 }
449 else
450 {
451 m_RestartButton.Show( false );
452 }
453
456 }

References GetGame(), and CGame::GetPlayer().

◆ UpdateHudDebugSetting()

void UIScriptedMenu::UpdateHudDebugSetting ( )
private

Referenced by Init().

◆ UpdateInfo()

void UIScriptedMenu::UpdateInfo ( )
inlineprivate

Definition at line 144 of file logoutmenu.c.

145 {
146 PlayerBase player = PlayerBase.Cast( GetGame().GetPlayer() );
147 if (player.IsRestrained() || player.IsUnconscious())
148 {
149 // display killInfo
150 m_DescriptionText.SetText("#layout_logout_dialog_note_killed");
151 }
152 else
153 {
154 // hide killInfo
155 m_DescriptionText.SetText("#layout_logout_dialog_note");
156 }
157 }

References GetGame(), and GetPlayer().

Referenced by Init().

◆ UpdateInfoPanelText()

void UIScriptedMenu::UpdateInfoPanelText ( int  input_device_type)
inlineprivate

Definition at line 117 of file creditsmenu.c.

118 {
119 if (GetGame().GetInput().IsEnabledMouseAndKeyboard() && input_device_type == EInputDeviceType.MOUSE_AND_KEYBOARD)
120 {
121 m_InfoPanelText.SetText("ESC " + "#menu_back");
122 }
123 else
124 {
125 m_InfoPanelText.SetText(InputUtils.GetRichtextButtonIconFromInputAction("UAUIBack", "#menu_back", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
126 }
127 }

References GetGame(), GetInput(), InputUtils::GetRichtextButtonIconFromInputAction(), and InputUtils::ICON_SCALE_TOOLBAR.

Referenced by Init().

◆ UpdateItemInfo()

static void UIScriptedMenu::UpdateItemInfo ( Widget  root_widget,
EntityAI  item 
)
inlinestaticprivate

Definition at line 138 of file inspectmenunew.c.

139 {
140 if (!root_widget || !item) return;
141
142 Widget panelInfo = root_widget.FindAnyWidget("InventoryInfoPanelWidget");
143 if ( panelInfo )
144 {
145 if ( item.IsInherited( ZombieBase ) || item.IsInherited( Car ) )
146 {
147 panelInfo.Show( false );
148 }
149 else
150 {
151 panelInfo.Show( true );
152 }
153 }
154
155 if ( !item.IsInherited( ZombieBase ) && !item.IsInherited( Car ) )
156 {
157 InventoryItem iItem = InventoryItem.Cast( item );
158 WidgetTrySetText(root_widget, "ItemDescWidget", iItem.GetTooltip());
159 }
160
161 WidgetTrySetText(root_widget, "ItemNameWidget", item.GetDisplayName());
162 InspectMenuNew.UpdateItemInfoDamage(root_widget, item);
163 InspectMenuNew.UpdateItemInfoLiquidType(root_widget, item);
164 InspectMenuNew.UpdateItemInfoTemperature(root_widget, item);
165 InspectMenuNew.UpdateItemInfoWetness(root_widget, item);
166 InspectMenuNew.UpdateItemInfoQuantity(root_widget, item);
167 InspectMenuNew.UpdateItemInfoWeight(root_widget, item);
168 InspectMenuNew.UpdateItemInfoFoodStage(root_widget, item);
169 InspectMenuNew.UpdateItemInfoCleanness(root_widget, item);
170
171 Widget content = root_widget.FindAnyWidget("InventoryInfoPanelWidget");
172 }
static void WidgetTrySetText(Widget root_widget, string widget_name, string text, int color=0)

References WidgetTrySetText().

◆ UpdateItemInfoCleanness()

static void UIScriptedMenu::UpdateItemInfoCleanness ( Widget  root_widget,
EntityAI  item 
)
inlinestaticprivate

Definition at line 574 of file inspectmenunew.c.

575 {
576 ItemBase ib = ItemBase.Cast(item);
577 if(ib && ib.m_Cleanness==1)
578 {
579 WidgetTrySetText( root_widget, "ItemCleannessWidget", "#inv_inspect_cleaned", Colors.WHITEGRAY );
580 }
581 else
582 {
583 WidgetTrySetText( root_widget, "ItemCleannessWidget", "" );
584 }
585 }
Definition: colors.c:4
const int WHITEGRAY
Definition: colors.c:16

References Colors::WHITEGRAY, and WidgetTrySetText().

◆ UpdateItemInfoDamage()

static void UIScriptedMenu::UpdateItemInfoDamage ( Widget  root_widget,
EntityAI  item 
)
inlinestaticprivate

Definition at line 183 of file inspectmenunew.c.

184 {
185 if ( item.IsInherited( ZombieBase ) || item.IsInherited( Car ) ) return;
186
187 int damageLevel = item.GetHealthLevel();
188
189 switch(damageLevel)
190 {
192 {
193 WidgetTrySetText(root_widget, "ItemDamageWidget", "#inv_inspect_ruined", Colors.COLOR_RUINED);
194 break;
195 }
197 {
198 WidgetTrySetText(root_widget, "ItemDamageWidget", "#inv_inspect_badly", Colors.COLOR_BADLY_DAMAGED);
199 break;
200 }
201
203 {
204 WidgetTrySetText(root_widget, "ItemDamageWidget", "#inv_inspect_damaged", Colors.COLOR_DAMAGED);
205 break;
206 }
207
209 {
210 WidgetTrySetText(root_widget, "ItemDamageWidget", "#inv_inspect_worn", Colors.COLOR_WORN);
211 break;
212 }
213
215 {
216 WidgetTrySetText(root_widget, "ItemDamageWidget", "#inv_inspect_pristine", Colors.COLOR_PRISTINE);
217 break;
218 }
219
220 default:
221 {
222 WidgetTrySetText(root_widget, "ItemDamageWidget", "ERROR", Colors.COLOR_PRISTINE);
223 break;
224 }
225 }
226
227 }
const int COLOR_DAMAGED
Definition: colors.c:22
const int COLOR_BADLY_DAMAGED
Definition: colors.c:21
const int COLOR_PRISTINE
Definition: colors.c:24
const int COLOR_WORN
Definition: colors.c:23
const int COLOR_RUINED
Definition: colors.c:20
const int STATE_RUINED
Definition: constants.c:733
const int STATE_WORN
Definition: constants.c:736
const int STATE_DAMAGED
Definition: constants.c:735
const int STATE_BADLY_DAMAGED
Definition: constants.c:734
const int STATE_PRISTINE
Definition: constants.c:737

References Colors::COLOR_BADLY_DAMAGED, Colors::COLOR_DAMAGED, Colors::COLOR_PRISTINE, Colors::COLOR_RUINED, Colors::COLOR_WORN, GameConstants::STATE_BADLY_DAMAGED, GameConstants::STATE_DAMAGED, GameConstants::STATE_PRISTINE, GameConstants::STATE_RUINED, GameConstants::STATE_WORN, and WidgetTrySetText().

◆ UpdateItemInfoFoodStage()

static void UIScriptedMenu::UpdateItemInfoFoodStage ( Widget  root_widget,
EntityAI  item 
)
inlinestaticprivate

Definition at line 524 of file inspectmenunew.c.

525 {
526 Edible_Base food_item = Edible_Base.Cast( item );
527 if ( food_item && food_item.HasFoodStage() )
528 {
529 ref FoodStage food_stage = food_item.GetFoodStage();
530 FoodStageType food_stage_type = food_stage.GetFoodStageType();
531
532 switch( food_stage_type )
533 {
534 case FoodStageType.RAW:
535 {
536 WidgetTrySetText( root_widget, "ItemFoodStageWidget", "#inv_inspect_raw", Colors.COLOR_RAW );
537 break;
538 }
539 case FoodStageType.BAKED:
540 {
541 WidgetTrySetText( root_widget, "ItemFoodStageWidget", "#inv_inspect_baked", Colors.COLOR_BAKED );
542 break;
543 }
544 case FoodStageType.BOILED:
545 {
546 WidgetTrySetText( root_widget, "ItemFoodStageWidget", "#inv_inspect_boiled", Colors.COLOR_BOILED );
547 break;
548 }
549 case FoodStageType.DRIED:
550 {
551 WidgetTrySetText( root_widget, "ItemFoodStageWidget", "#inv_inspect_dried", Colors.COLOR_DRIED );
552 break;
553 }
554 case FoodStageType.BURNED:
555 {
556 WidgetTrySetText( root_widget, "ItemFoodStageWidget", "#inv_inspect_burned", Colors.COLOR_BURNED );
557 break;
558 }
559 case FoodStageType.ROTTEN:
560 {
561 WidgetTrySetText( root_widget, "ItemFoodStageWidget", "#inv_inspect_rotten", Colors.COLOR_ROTTEN );
562 break;
563 }
564 }
565 }
566 else
567 {
568 WidgetTrySetText( root_widget, "ItemFoodStageWidget", "" );
569 }
570 }
const int COLOR_BAKED
Definition: colors.c:34
const int COLOR_RAW
Definition: colors.c:33
const int COLOR_ROTTEN
Definition: colors.c:38
const int COLOR_BOILED
Definition: colors.c:35
const int COLOR_BURNED
Definition: colors.c:37
const int COLOR_DRIED
Definition: colors.c:36
FoodStageType
Definition: foodstage.c:2

References Colors::COLOR_BAKED, Colors::COLOR_BOILED, Colors::COLOR_BURNED, Colors::COLOR_DRIED, Colors::COLOR_RAW, Colors::COLOR_ROTTEN, and WidgetTrySetText().

◆ UpdateItemInfoLiquidType()

static void UIScriptedMenu::UpdateItemInfoLiquidType ( Widget  root_widget,
EntityAI  item 
)
inlinestaticprivate

Definition at line 230 of file inspectmenunew.c.

231 {
232 if ( item.IsInherited( ZombieBase ) || item.IsInherited( Car ) ) return;
233
234 ItemBase item_base = ItemBase.Cast( item );
235
236 if( item_base && item_base.GetQuantity() > 0 && item_base.IsBloodContainer() )
237 {
238 BloodContainerBase blood_container = BloodContainerBase.Cast( item_base );
239
240 if( blood_container.GetBloodTypeVisible() )
241 {
242 string type;
243 bool positive;
244 string blood_type_name = BloodTypes.GetBloodTypeName(blood_container.GetLiquidType(), type, positive);
245 WidgetTrySetText(root_widget, "ItemLiquidTypeWidget", "#inv_inspect_blood: " + blood_type_name, Colors.COLOR_LIQUID);
246 }
247 else
248 {
249 WidgetTrySetText(root_widget, "ItemLiquidTypeWidget", "#inv_inspect_blood", Colors.COLOR_LIQUID);
250 }
251 }
252 else if( item_base && item_base.GetQuantity() > 0 && item_base.IsLiquidContainer() )
253 {
254 int liquid_type = item_base.GetLiquidType();
255
256 switch(liquid_type)
257 {
258 case LIQUID_WATER:
259 {
260 WidgetTrySetText(root_widget, "ItemLiquidTypeWidget", "#inv_inspect_water", Colors.COLOR_LIQUID);
261 break;
262 }
263
265 {
266 WidgetTrySetText(root_widget, "ItemLiquidTypeWidget", "#inv_inspect_river_water", Colors.COLOR_LIQUID);
267 break;
268 }
269
270 case LIQUID_VODKA:
271 {
272 WidgetTrySetText(root_widget, "ItemLiquidTypeWidget", "#inv_inspect_vodka", Colors.COLOR_LIQUID);
273 break;
274 }
275
276 case LIQUID_BEER:
277 {
278 WidgetTrySetText(root_widget, "ItemLiquidTypeWidget", "#inv_inspect_beer", Colors.COLOR_LIQUID);
279 break;
280 }
281
282 case LIQUID_GASOLINE:
283 {
284 WidgetTrySetText(root_widget, "ItemLiquidTypeWidget", "#inv_inspect_gasoline", Colors.COLOR_LIQUID);
285 break;
286 }
287
288 case LIQUID_DIESEL:
289 {
290 WidgetTrySetText(root_widget, "ItemLiquidTypeWidget", "#inv_inspect_diesel", Colors.COLOR_LIQUID);
291 break;
292 }
293
295 {
296 WidgetTrySetText(root_widget, "ItemLiquidTypeWidget", "#inv_inspect_disinfectant", Colors.COLOR_LIQUID);
297 break;
298 }
299
300 case LIQUID_SALINE:
301 {
302 WidgetTrySetText(root_widget, "ItemLiquidTypeWidget", "#inv_inspect_saline", Colors.COLOR_LIQUID);
303 break;
304 }
305
306 default:
307 {
308 WidgetTrySetText(root_widget, "ItemLiquidTypeWidget", "ERROR", Colors.COLOR_LIQUID);
309 break;
310 }
311 }
312 }
313 else
314 {
315 WidgetTrySetText(root_widget, "ItemLiquidTypeWidget", "");
316 }
317 }
static string GetBloodTypeName(int bloodtype, out string type, out bool positive)
Definition: bloodtype.c:89
const int COLOR_LIQUID
Definition: colors.c:31
override bool IsBloodContainer()
const int LIQUID_VODKA
Definition: constants.c:487
const int LIQUID_DISINFECTANT
Definition: constants.c:491
const int LIQUID_BEER
Definition: constants.c:488
const int LIQUID_GASOLINE
Definition: constants.c:489
const int LIQUID_WATER
Definition: constants.c:485
const int LIQUID_RIVERWATER
Definition: constants.c:486
const int LIQUID_DIESEL
Definition: constants.c:490
const int LIQUID_SALINE
Definition: constants.c:483

References Colors::COLOR_LIQUID, BloodTypes::GetBloodTypeName(), ItemBase::IsBloodContainer(), LIQUID_BEER, LIQUID_DIESEL, LIQUID_DISINFECTANT, LIQUID_GASOLINE, LIQUID_RIVERWATER, LIQUID_SALINE, LIQUID_VODKA, LIQUID_WATER, and WidgetTrySetText().

◆ UpdateItemInfoQuantity()

static void UIScriptedMenu::UpdateItemInfoQuantity ( Widget  root_widget,
EntityAI  item 
)
inlinestaticprivate

Definition at line 383 of file inspectmenunew.c.

384 {
385 if ( item.IsInherited( ZombieBase ) || item.IsInherited( Car ) ) return;
386
387 ItemBase item_base = ItemBase.Cast( item );
388 if( item_base )
389 {
390 float item_quantity = item_base.GetQuantity();
391 int max_quantity = item.GetQuantityMax();
392
393 float quantity_ratio;
394
395 if( max_quantity > 0 && !item.IsInherited( ClothingBase )) // Some items, like books, have max_quantity set to 0 => division by ZERO error in quantity_ratio
396 {
397 string quantity_str;
398 if( item.ConfigGetString("stackedUnit") == "pc." )
399 {
400 if( item_quantity == 1 )
401 {
402 WidgetTrySetText( root_widget, "ItemQuantityWidget", item_quantity.ToString() + " " + "#inv_inspect_piece", Colors.COLOR_DEFAULT );
403 }
404 else
405 {
406 WidgetTrySetText( root_widget, "ItemQuantityWidget", item_quantity.ToString() + " " + "#inv_inspect_pieces", Colors.COLOR_DEFAULT );
407 }
408 }
409 else if( item.ConfigGetString("stackedUnit") == "percentage" )
410 {
411 quantity_ratio = Math.Round( ( item_quantity / max_quantity ) * 100 );
412
413 quantity_str = "#inv_inspect_remaining " + quantity_ratio.ToString() + "#inv_inspect_percent";
414 WidgetTrySetText( root_widget, "ItemQuantityWidget", quantity_str, Colors.COLOR_DEFAULT );
415 }
416 else if( item.ConfigGetString("stackedUnit") == "g" )
417 {
418 quantity_ratio = Math.Round( ( item_quantity / max_quantity ) * 100 );
419
420 quantity_str = "#inv_inspect_remaining " + quantity_ratio.ToString() + "#inv_inspect_percent";
421 WidgetTrySetText( root_widget, "ItemQuantityWidget", quantity_str, Colors.COLOR_DEFAULT );
422 }
423 else if( item.ConfigGetString("stackedUnit") == "ml" )
424 {
425 quantity_ratio = Math.Round( ( item_quantity / max_quantity ) * 100 );
426
427 quantity_str = "#inv_inspect_remaining " + quantity_ratio.ToString() + "#inv_inspect_percent";
428 WidgetTrySetText( root_widget, "ItemQuantityWidget", quantity_str, Colors.COLOR_DEFAULT );
429 }
430 else if( item.IsInherited( Magazine ) )
431 {
432 Magazine magazine_item;
433 Class.CastTo(magazine_item, item);
434
435 if( magazine_item.GetAmmoCount() == 1 )
436 {
437 WidgetTrySetText( root_widget, "ItemQuantityWidget", magazine_item.GetAmmoCount().ToString() + " " + "#inv_inspect_piece", Colors.COLOR_DEFAULT );
438 }
439 else
440 {
441 WidgetTrySetText( root_widget, "ItemQuantityWidget", magazine_item.GetAmmoCount().ToString() + " " + "#inv_inspect_pieces", Colors.COLOR_DEFAULT );
442 }
443 }
444 else
445 {
446 WidgetTrySetText( root_widget, "ItemQuantityWidget", "" );
447 }
448 }
449 else
450 {
451 if ( item.IsInherited( ClothingBase ) )
452 {
453 float heatIsolation = MiscGameplayFunctions.GetCurrentItemHeatIsolation( item_base );
454 if ( heatIsolation <= GameConstants.HEATISO_THRESHOLD_BAD )
455 {
456 WidgetTrySetText( root_widget, "ItemQuantityWidget", "#inv_inspect_iso_bad", GetTemperatureColor( 10 ) );
457 }
458 else if ( ( heatIsolation > GameConstants.HEATISO_THRESHOLD_BAD ) && ( heatIsolation <= GameConstants.HEATISO_THRESHOLD_LOW ) )
459 {
460 WidgetTrySetText( root_widget, "ItemQuantityWidget", "#inv_inspect_iso_low", GetTemperatureColor( 20 ) );
461 }
462 else if ( ( heatIsolation > GameConstants.HEATISO_THRESHOLD_LOW ) && ( heatIsolation <= GameConstants.HEATISO_THRESHOLD_MEDIUM ) )
463 {
464 WidgetTrySetText( root_widget, "ItemQuantityWidget", "#inv_inspect_iso_medium", GetTemperatureColor( 30 ) );
465 }
466 else if ( ( heatIsolation > GameConstants.HEATISO_THRESHOLD_MEDIUM ) && ( heatIsolation <= GameConstants.HEATISO_THRESHOLD_HIGH ) )
467 {
468 WidgetTrySetText( root_widget, "ItemQuantityWidget", "#inv_inspect_iso_high", GetTemperatureColor( 50 ) );
469 }
470 else
471 {
472 WidgetTrySetText( root_widget, "ItemQuantityWidget", "#inv_inspect_iso_excel", GetTemperatureColor( 70 ) );
473 }
474 }
475 else
476 {
477 WidgetTrySetText( root_widget, "ItemQuantityWidget", "" );
478 }
479 }
480 }
481 }
const int COLOR_DEFAULT
Definition: colors.c:18
const float HEATISO_THRESHOLD_HIGH
Definition: constants.c:780
const float HEATISO_THRESHOLD_MEDIUM
Definition: constants.c:779
const float HEATISO_THRESHOLD_BAD
Definition: constants.c:777
const float HEATISO_THRESHOLD_LOW
Definition: constants.c:778
int GetTemperatureColor(int temperature)
Definition: tools.c:979

References Class::CastTo(), Colors::COLOR_DEFAULT, GetTemperatureColor(), GameConstants::HEATISO_THRESHOLD_BAD, GameConstants::HEATISO_THRESHOLD_HIGH, GameConstants::HEATISO_THRESHOLD_LOW, GameConstants::HEATISO_THRESHOLD_MEDIUM, Math::Round(), float::ToString(), and WidgetTrySetText().

◆ UpdateItemInfoTemperature()

static void UIScriptedMenu::UpdateItemInfoTemperature ( Widget  root_widget,
EntityAI  item 
)
inlinestaticprivate

Definition at line 320 of file inspectmenunew.c.

321 {
322 if ( item.IsInherited( ZombieBase ) || item.IsInherited( Car ) ) return;
323 float temperature;
324 ItemBase item_base = ItemBase.Cast( item );
325 if( item_base )
326 {
327 temperature = item_base.GetTemperature();
328 }
329
330 if( temperature > 30 )
331 {
332 if ( temperature > 100 )
333 {
334 temperature = 100 * Math.Floor( temperature / 100.0 );
335 }
336 else
337 {
338 temperature = 10 * Math.Floor( temperature / 10.0 );
339 }
340 WidgetTrySetText(root_widget, "ItemTemperatureWidget", "#inv_inspect_about " + temperature.ToString() + " " + "#inv_inspect_celsius", GetTemperatureColor( temperature ) );
341 }
342 else
343 {
344 WidgetTrySetText(root_widget, "ItemTemperatureWidget", "");
345 }
346 }

References Math::Floor(), GetTemperatureColor(), float::ToString(), and WidgetTrySetText().

◆ UpdateItemInfoWeight()

static void UIScriptedMenu::UpdateItemInfoWeight ( Widget  root_widget,
EntityAI  item 
)
inlinestaticprivate

Definition at line 484 of file inspectmenunew.c.

485 {
486 if (!item.CanDisplayWeight())
487 {
488 WidgetTrySetText(root_widget, "ItemWeightWidget", "", Colors.COLOR_DEFAULT);
489 return;
490 }
491
492 ItemBase item_IB = ItemBase.Cast( item );
493 if( item_IB )
494 {
495 item_IB.UpdateWeight();
496 int weight = item_IB.GetWeight();
497
498 if (root_widget.GetName() != "BackPanelWidget")
499 {
500 weight = item_IB.GetSingleInventoryItemWeight();
501 }
502
503 if (weight >= 1000)
504 {
505 int kilos = Math.Round(weight / 1000.0);
506 WidgetTrySetText(root_widget, "ItemWeightWidget", "#inv_inspect_about" + " " + kilos.ToString() + " " + "#inv_inspect_kg", Colors.COLOR_DEFAULT);
507 }
508 else if (weight >= 500)
509 {
510 WidgetTrySetText(root_widget, "ItemWeightWidget", "#inv_inspect_under_1", Colors.COLOR_DEFAULT);
511 }
512 else if (weight >= 250)
513 {
514 WidgetTrySetText(root_widget, "ItemWeightWidget", "#inv_inspect_under_05", Colors.COLOR_DEFAULT);
515 }
516 else
517 {
518 WidgetTrySetText(root_widget, "ItemWeightWidget", "#inv_inspect_under_025", Colors.COLOR_DEFAULT);
519 }
520 }
521 }

References Colors::COLOR_DEFAULT, Math::Round(), and WidgetTrySetText().

◆ UpdateItemInfoWetness()

static void UIScriptedMenu::UpdateItemInfoWetness ( Widget  root_widget,
EntityAI  item 
)
inlinestaticprivate

Definition at line 349 of file inspectmenunew.c.

350 {
351 if ( item.IsInherited( ZombieBase ) || item.IsInherited( Car ) ) return;
352 float wetness = 0;
353
354 if ( item.IsInherited(ItemBase) )
355 {
356 ItemBase item_IB = ItemBase.Cast( item );
357 wetness = item_IB.GetWet();
358 }
359
360 if( wetness < GameConstants.STATE_DAMP )
361 {
362 WidgetTrySetText(root_widget, "ItemWetnessWidget", "");
363 }
364 else if( wetness >= GameConstants.STATE_DAMP && wetness < GameConstants.STATE_WET )
365 {
366 WidgetTrySetText(root_widget, "ItemWetnessWidget", "#inv_inspcet_damp", Colors.COLOR_DAMP);
367 }
368 else if( wetness >= GameConstants.STATE_WET && wetness < GameConstants.STATE_SOAKING_WET )
369 {
370 WidgetTrySetText( root_widget, "ItemWetnessWidget", "#inv_inspect_wet", Colors.COLOR_WET );
371 }
372 else if( wetness >= GameConstants.STATE_SOAKING_WET && wetness < GameConstants.STATE_DRENCHED )
373 {
374 WidgetTrySetText( root_widget, "ItemWetnessWidget", "#inv_inspect_soaking_wet", Colors.COLOR_SOAKING_WET );
375 }
376 else
377 {
378 WidgetTrySetText( root_widget, "ItemWetnessWidget", "#inv_inspect_drenched", Colors.COLOR_DRENCHED );
379 }
380 }
const int COLOR_DRENCHED
Definition: colors.c:26
const int COLOR_DAMP
Definition: colors.c:29
const int COLOR_WET
Definition: colors.c:28
const int COLOR_SOAKING_WET
Definition: colors.c:27
const float STATE_DAMP
Definition: constants.c:760
const float STATE_SOAKING_WET
Definition: constants.c:758
const float STATE_DRENCHED
Definition: constants.c:757
const float STATE_WET
Definition: constants.c:759

References Colors::COLOR_DAMP, Colors::COLOR_DRENCHED, Colors::COLOR_SOAKING_WET, Colors::COLOR_WET, GameConstants::STATE_DAMP, GameConstants::STATE_DRENCHED, GameConstants::STATE_SOAKING_WET, GameConstants::STATE_WET, and WidgetTrySetText().

◆ UpdateListClasses()

protected void UIScriptedMenu::UpdateListClasses ( )
inlineprivate

Definition at line 1164 of file sceneeditormenu.c.

1165 {
1167
1168 m_ClWgtLbxClassesList.ClearItems();
1169
1170 for ( int i = 0; i < m_ClClassesList.Count(); ++i )
1171 {
1172 m_ClWgtLbxClassesList.AddItem(m_ClClassesList.Get(i), NULL, 0);
1173 }
1174 }
TStringArray GetFiltredConfigClasses(string search_string, TStringArray array_ret)

References GetFiltredConfigClasses().

Referenced by Init(), and OnChange().

◆ UpdateListObjects()

private void UIScriptedMenu::UpdateListObjects ( )
inlineprivate

Definition at line 1137 of file sceneeditormenu.c.

1138 {
1140
1141 m_SlWgtLbxObjectsList.ClearItems();
1142
1143 int row = -1;
1144 SceneObject selected_object = m_ModuleSceneManager.GetSelectedSceneObject();
1145
1146 for ( int i = 0; i < m_SlObjectsList.Count(); ++i )
1147 {
1148 SceneObject scene_obj = m_SlObjectsList.GetElement(i);
1149
1150 if ( selected_object != NULL && selected_object == scene_obj )
1151 {
1152 row = i;
1153 }
1154
1155 m_SlWgtLbxObjectsList.AddItem(scene_obj.GetTypeName(), NULL, 0);
1156 }
1157
1158 m_SlWgtLbxObjectsList.SelectRow(row);
1159 }
protected map< int, SceneObject > GetFiltredSceneObjects(string search_string, map< int, SceneObject > array_ret)

References GetFiltredSceneObjects(), and SceneObject::GetTypeName().

Referenced by Init(), OnChange(), and Refresh().

◆ UpdateMenuFocus()

void UIScriptedMenu::UpdateMenuFocus ( )
inlineprivate

Definition at line 784 of file ingamemenuxbox.c.

785 {
786 Man player = GetGame().GetPlayer();
787 if( m_PlayerAlive )
788 {
789 if( player.IsUnconscious() )
790 {
792 }
793 else
794 {
796 }
797 }
798 else
799 {
801 }
802 }

References GetGame(), CGame::GetPlayer(), and SetFocus().

Referenced by Init(), OnModalResult(), and OnShow().

◆ UpdateMousePos()

void UIScriptedMenu::UpdateMousePos ( )
inlineprivate

Definition at line 835 of file scriptconsole.c.

836 {
837 int x,y;
838 GetMousePos(x,y);
839 vector mouse_pos, world_pos;
840 mouse_pos[0] = x;
841 mouse_pos[1] = y;
842 world_pos = m_DebugMapWidget.ScreenToMap(mouse_pos);
843 world_pos[1] = GetGame().SurfaceY(world_pos[0], world_pos[2]);
844 vector player_pos = GetGame().GetPlayer().GetWorldPosition();
845 //player_pos[1] = 0;
846 float dst = (world_pos - player_pos).Length();
847
848 if (m_MouseCurPos)
849 {
850 m_MouseCurPos.SetText( "Mouse: "+ MiscGameplayFunctions.TruncateToS(world_pos[0]) +", "+ MiscGameplayFunctions.TruncateToS(world_pos[1]) +", "+ MiscGameplayFunctions.TruncateToS(world_pos[2]));
851 }
853 {
854 m_PlayerMouseDiff.SetText("Distance: " + MiscGameplayFunctions.TruncateToS(dst));
855 }
856 }

References GetGame(), GetMousePos(), CGame::GetPlayer(), CGame::SurfaceY(), x, and y.

Referenced by Update().

◆ UpdateQuickbarItemCard() [1/2]

protected void UIScriptedMenu::UpdateQuickbarItemCard ( GestureMenuItem  gesture_item)
inlineprivate

Definition at line 396 of file gesturesmenu.c.

397 {
398 Widget gesture_item_card_widget = gesture_item.GetRadialItemCard();
399 //texts
400 RichTextWidget gesture_text = RichTextWidget.Cast( gesture_item_card_widget.FindAnyWidget( GESTURE_TEXT ) );
401 RichTextWidget input_text = RichTextWidget.Cast( gesture_item_card_widget.FindAnyWidget( INPUT_TEXT ) );
402 gesture_text.SetText( gesture_item.GetName() );
403 bool input_name_available = gesture_item.GetBoundButtonText() != "";
404 input_text.Show(input_name_available);
405 if (input_name_available)
406 {
407 input_text.SetText(gesture_item.GetBoundButtonText());
408 }
409 //coloring
410 ProcessEmoteConditionRequest(gesture_item);
411 if (gesture_item.GetCanPerformEmote())
412 {
413 gesture_item_card_widget.SetFlags(WidgetFlags.DISABLED); //flag just seems to be...'there', useful for showing radial selector. Still...
414 gesture_text.SetColor(ARGB(255,255,255,255));
415 input_text.SetColor(ARGB(255,255,255,255));
416 }
417 else
418 {
419 gesture_item_card_widget.ClearFlags(WidgetFlags.DISABLED);
420 gesture_text.SetColor(ARGB(255,150,150,150));
421 input_text.SetColor(ARGB(255,150,150,150));
422 }
423 }
const string INPUT_TEXT
Definition: gesturesmenu.c:117
const string GESTURE_TEXT
Definition: gesturesmenu.c:116
void ProcessEmoteConditionRequest(GestureMenuItem gesture_item)
Definition: gesturesmenu.c:258

References ARGB().

◆ UpdateQuickbarItemCard() [2/2]

protected void UIScriptedMenu::UpdateQuickbarItemCard ( RadialQuickbarItem  quickbar_item)
inlineprivate

Definition at line 395 of file radialquickbarmenu.c.

396 {
397 Widget item_card_widget = quickbar_item.GetRadialItemCard();
398
399 //get content panels
400 Widget item_details = item_card_widget.FindAnyWidget( "ItemDetails" );
401 TextWidget item_title = TextWidget.Cast( item_card_widget.FindAnyWidget( "ItemTitle" ) );
402
403 //set text
404 TextWidget text_widget = TextWidget.Cast( item_card_widget.FindAnyWidget( TEXT_ITEM_NAME ) );
405 EntityAI item = quickbar_item.GetItem();
406
407 Widget quantity_panel = item_card_widget.FindAnyWidget( "QuantityPanel" );
408 if ( item )
409 {
410 //item text
411 text_widget.SetText( quickbar_item.GetItem().GetDisplayName() );
412
413 //item preview
414 ItemPreviewWidget item_preview = ItemPreviewWidget.Cast( item_card_widget.FindAnyWidget( "ItemPreview" ) );
415 item_preview.SetItem( item );
416 item_preview.SetView( item.GetViewIndex() );
417 item_preview.SetModelOrientation( Vector( 0,0,0 ) );
418
419 //item quantity
420 Widget quantity_stack = quantity_panel.FindAnyWidget( "QuantityStackPanel" );
421 ProgressBarWidget quantity_bar = ProgressBarWidget.Cast( quantity_panel.FindAnyWidget( "QuantityBar" ) );
422 int has_quantity = QuantityConversions.HasItemQuantity( item );
423 //calculate and set quantity
424 if ( has_quantity == QUANTITY_HIDDEN )
425 {
426 quantity_panel.Show( false );
427 }
428 else if ( has_quantity == QUANTITY_COUNT )
429 {
430 //hide bar
431 quantity_bar.Show( false );
432
433 //show stack
434 TextWidget quantity_text = TextWidget.Cast( quantity_stack.FindAnyWidget( "Quantity" ) );
435 quantity_text.SetText( QuantityConversions.GetItemQuantityText( item ) );
436 quantity_stack.Show( true );
437 }
438 else if ( has_quantity == QUANTITY_PROGRESS )
439 {
440 //hide stack
441 quantity_stack.Show( false );
442
443 //show bar
444 float progress_max = quantity_bar.GetMax();
445 int max = item.ConfigGetInt( "varQuantityMax" );
446 int count = item.ConfigGetInt( "count" );
447 float quantity = QuantityConversions.GetItemQuantity( ItemBase.Cast( item ) );
448
449 if ( count > 0 )
450 {
451 max = count;
452 }
453 if ( max > 0 )
454 {
455
456 float value = Math.Round( ( quantity / max ) * 100 );
457 quantity_bar.SetCurrent( value );
458 }
459
460 quantity_bar.Show( true );
461 }
462
463 //display content panels
464 item_details.Show( true );
465 item_title.Show( false );
466 }
467 else if ( quickbar_item.GetCategorySwitchID() != -1 )
468 {
469 item_title.SetText( quickbar_item.GetItemName() );
470
471 item_details.Show( false );
472 item_title.Show( true );
473 }
474 else
475 {
476 item_title.SetText( "#container_empty" );
477
478 //display content panels
479 item_details.Show( false );
480 item_title.Show( true );
481 }
482 }
proto native void SetModelOrientation(vector vOrientation)
static float GetItemQuantity(InventoryItem item)
static int HasItemQuantity(notnull EntityAI item)
static string GetItemQuantityText(EntityAI item, bool showMax=false)
const string TEXT_ITEM_NAME
const int QUANTITY_PROGRESS
Definition: constants.c:464
const int QUANTITY_COUNT
Definition: constants.c:463
const int QUANTITY_HIDDEN
Definition: constants.c:462

References QuantityConversions::GetItemQuantity(), QuantityConversions::GetItemQuantityText(), QuantityConversions::HasItemQuantity(), QUANTITY_COUNT, QUANTITY_HIDDEN, QUANTITY_PROGRESS, Math::Round(), ItemPreviewWidget::SetItem(), ItemPreviewWidget::SetModelOrientation(), ItemPreviewWidget::SetView(), and Vector().

◆ UpdateRotation()

void UIScriptedMenu::UpdateRotation ( int  mouse_x,
int  mouse_y,
bool  is_dragging 
)
inlineprivate

Definition at line 90 of file inspectmenunew.c.

91 {
93 o[0] = o[0] + (m_characterRotationY - mouse_y);
94 o[1] = o[1] - (m_characterRotationX - mouse_x);
95
97
98 if (!is_dragging)
99 {
101 }
102 }
private vector m_characterOrientation
Definition: inspectmenunew.c:9

References m_characterOrientation, and ItemPreviewWidget::SetModelOrientation().

◆ UpdateScale()

void UIScriptedMenu::UpdateScale ( )
inlineprivate

Definition at line 118 of file inspectmenunew.c.

119 {
120 float w, h, x, y;
121 m_item_widget.GetPos(x, y);
122 m_item_widget.GetSize(w,h);
123 w = w + ( m_characterScaleDelta / 4);
124 h = h + ( m_characterScaleDelta / 4 );
125 if ( w > 0.5 && w < 3 )
126 {
127 m_item_widget.SetSize( w, h );
128
129 // align to center
130 int screen_w, screen_h;
131 GetScreenSize(screen_w, screen_h);
132 float new_x = x - ( m_characterScaleDelta / 8 );
133 float new_y = y - ( m_characterScaleDelta / 8 );
134 m_item_widget.SetPos( new_x, new_y );
135 }
136 }

References GetScreenSize(), x, and y.

Referenced by OnMouseWheel().

◆ UpdateSlotInfo()

static void UIScriptedMenu::UpdateSlotInfo ( Widget  root_widget,
string  name,
string  desc = "" 
)
inlinestaticprivate

Definition at line 175 of file inspectmenunew.c.

176 {
177 if (!root_widget ) return;
178
179 WidgetTrySetText(root_widget, "ItemNameWidget", name);
180 }

References name, and WidgetTrySetText().

◆ UpdateTabContent() [1/2]

void UIScriptedMenu::UpdateTabContent ( int  tab_index)
inlineprivate

Definition at line 92 of file controlsxboxnew.c.

93 {
94 Widget w;
95 //hide old
96 if (m_CurrentTabIdx != -1)
97 {
98 m_VariantWidget.Show(false);
99 while (m_VariantWidget.GetParent())
100 {
101 m_VariantWidget = m_VariantWidget.GetParent();
102 m_VariantWidget.Show(false);
103 }
104 }
105 //show new
107 w.Show(true);
108 m_VariantWidget = w;
109
110 while (w.GetParent())
111 {
112 w = w.GetParent();
113 w.Show(true);
114 }
115
116 DrawConnectingLines(tab_index);
117 m_CurrentTabIdx = tab_index;
118 }
static int GetConsolePresetID()
Definition: inpututils.c:224

References DrawConnectingLines(), FindChildByID(), and InputUtils::GetConsolePresetID().

Referenced by Init(), and Update().

◆ UpdateTabContent() [2/2]

void UIScriptedMenu::UpdateTabContent ( int  tab_index)
inlineprivate

Definition at line 107 of file keybindingsmenu.c.

108 {
109 m_GroupsContainer.SwitchSubgroup(tab_index);
110 }

◆ UpdateTime() [1/3]

void UIScriptedMenu::UpdateTime ( )
inlineprivate

Definition at line 60 of file invitemenu.c.

61 {
62 if (m_iTime > 0)
63 {
64 m_iTime -= 1;
65 m_LogoutTimetext.SetText(m_iTime.ToString());
66 }
67 }

Referenced by OnChange().

◆ UpdateTime() [2/3]

void UIScriptedMenu::UpdateTime ( )
inlineprivate

Definition at line 131 of file logoutmenu.c.

132 {
133
134 if (m_iTime > 0)
135 {
136 SetTime(--m_iTime);
137 }
138 else
139 {
140 Exit();
141 }
142 }
void SetTime(int time)
Definition: dayzgame.c:212

References Exit(), and SetTime().

◆ UpdateTime() [3/3]

void UIScriptedMenu::UpdateTime ( bool  slider_used)
inlineprivate

Definition at line 2517 of file scriptconsole.c.

2518 {
2519 Param5<int,int,int,int,int> p5 = new Param5<int,int,int,int,int>(0,0,0,0,0);
2520 int year, month, day, hour, minute;
2521
2522 year = m_DateYear.GetText().ToInt();
2523 month = m_DateMonth.GetText().ToInt();
2524 day = m_DateDay.GetText().ToInt();
2525
2526 if ( slider_used )
2527 {
2528 int time_minutes = Math.Lerp(0, (24*60) - 1, m_TimeSlider.GetCurrent()/100 );
2529 hour = time_minutes / 60;
2530 minute = time_minutes % 60;
2531 }
2532 else
2533 {
2534 hour = m_DateHour.GetText().ToInt();
2535 minute = m_DateMinute.GetText().ToInt();
2536 }
2537
2538 p5.param1 = year;
2539 p5.param2 = month;
2540 p5.param3 = day;
2541 p5.param4 = hour;
2542 p5.param5 = minute;
2543
2544 RefreshDateWidgets(year, month, day, hour, minute);
2545 GetGame().GetWorld().SetDate(year, month, day, hour, minute);
2546 GetGame().GetPlayer().RPCSingleParam(ERPCs.DEV_RPC_SET_TIME, p5, true);
2547 }
proto native void SetDate(int year, int month, int day, int hour, int minute)
Sets actual ingame world time.
static proto float Lerp(float a, float b, float time)
Linearly interpolates between 'a' and 'b' given 'time'.

References GetGame(), CGame::GetPlayer(), CGame::GetWorld(), Math::Lerp(), RefreshDateWidgets(), and World::SetDate().

◆ UpdateToolbar()

protected void UIScriptedMenu::UpdateToolbar ( )
inlineprivate

DEPRECATED.

Definition at line 441 of file gesturesmenu.c.

441{}

◆ UpdateToolbarText()

protected void UIScriptedMenu::UpdateToolbarText ( )
inlineprivate

Definition at line 553 of file controlsxboxnew.c.

554 {
555 //changer text
556 string changer_text;
557 UAInputAPI inputAPI = GetUApi();
558 TextWidget changer_widget;
559 if ( Class.CastTo(changer_widget,layoutRoot.FindAnyWidget("ChangePresetText")) )
560 {
561 int target_idx = inputAPI.PresetCurrent() + 1;
562 int count = inputAPI.PresetCount();
563 if (target_idx >= inputAPI.PresetCount())
564 {
565 target_idx = 0;
566 }
567
568 changer_text = inputAPI.PresetName(target_idx);
569 if (changer_text == InputUtils.PRESET_OLD)
570 {
571 changer_text = "#STR_UAPRESET_ChangeTo_0";
572 }
573 else if (changer_text == InputUtils.PRESET_NEW)
574 {
575 changer_text = "#STR_UAPRESET_ChangeTo_1";
576 }
577 else
578 {
579 changer_text = "Invalid console preset name: " + changer_text;
580 }
581
582 changer_widget.SetText(changer_text);
583 }
584 }
static const string PRESET_NEW
Definition: inpututils.c:5
static const string PRESET_OLD
Definition: inpututils.c:4
proto native owned string PresetName(int index)

References Class::CastTo(), GetUApi(), InputUtils::PRESET_NEW, InputUtils::PRESET_OLD, UAInputAPI::PresetCount(), UAInputAPI::PresetCurrent(), and UAInputAPI::PresetName().

Referenced by OnShow(), and PerformSwitchPreset().

◆ UseGamepad() [1/2]

override bool UIScriptedMenu::UseGamepad ( )
inlineprivate

Definition at line 238 of file gesturesmenu.c.

239 {
240 return true;
241 }

Referenced by UIMenuPanel::LockControls(), and UIMenuPanel::UnlockControls().

◆ UseGamepad() [2/2]

override bool UIScriptedMenu::UseGamepad ( )
inlineprivate

Definition at line 236 of file radialquickbarmenu.c.

237 {
238 return true;
239 }

◆ UseKeyboard() [1/2]

override bool UIScriptedMenu::UseKeyboard ( )
inlineprivate

Definition at line 22 of file chatinputmenu.c.

23 {
24 return true;
25 }

Referenced by UIMenuPanel::LockControls(), MissionBase::OnUpdate(), and UIMenuPanel::UnlockControls().

◆ UseKeyboard() [2/2]

override bool UIScriptedMenu::UseKeyboard ( )
inlineprivate

Definition at line 353 of file sceneeditormenu.c.

354 {
355 return true;
356 }

◆ UseMouse() [1/3]

override bool UIScriptedMenu::UseMouse ( )
inlineprivate

Definition at line 233 of file gesturesmenu.c.

234 {
235 return true;
236 }

Referenced by UIMenuPanel::LockControls(), MissionBase::OnUpdate(), and UIMenuPanel::UnlockControls().

◆ UseMouse() [2/3]

override bool UIScriptedMenu::UseMouse ( )
inlineprivate

Definition at line 231 of file radialquickbarmenu.c.

232 {
233 return true;
234 }

◆ UseMouse() [3/3]

override bool UIScriptedMenu::UseMouse ( )
inlineprivate

Definition at line 345 of file sceneeditormenu.c.

346 {
347 return true;
348 }

◆ ViewEvent()

void UIScriptedMenu::ViewEvent ( )
inlineprivate

Definition at line 365 of file cameratoolsmenu.c.

366 {
367
368 }

◆ ViewKeyframe()

void UIScriptedMenu::ViewKeyframe ( )
inlineprivate

Definition at line 306 of file cameratoolsmenu.c.

307 {
308 if ( m_SelectedKeyframe && Camera.GetCurrentCamera() )
309 {
310 Camera.GetCurrentCamera().SetPosition( m_SelectedKeyframe.GetPosition() );
311 Camera.GetCurrentCamera().SetOrientation( m_SelectedKeyframe.GetOrientation() );
312 }
313 }

◆ WarningMenuBase()

void UIScriptedMenu::WarningMenuBase ( )
inlineprivate

◆ WidgetTrySetText()

static void UIScriptedMenu::WidgetTrySetText ( Widget  root_widget,
string  widget_name,
string  text,
int  color = 0 
)
inlinestaticprivate

Definition at line 590 of file inspectmenunew.c.

591 {
592 TextWidget widget = TextWidget.Cast( root_widget.FindAnyWidget(widget_name) );
593 RichTextWidget rt_widget = RichTextWidget.Cast( root_widget.FindAnyWidget(widget_name) );
594 if (widget)
595 {
596 widget.SetText(text);
597 Widget widget_background = root_widget.FindAnyWidget(widget_name+"Background");
598 if (widget_background)
599 {
600 if (color != 0)
601 {
602 widget_background.Show( true );
603 widget_background.SetColor(color | 0x7F000000);
604 }
605 else
606 {
607 widget_background.Show( false );
608 }
609 }
610 }
611 if( rt_widget )
612 {
613 rt_widget.Update();
614 }
615 }

Referenced by UpdateItemInfo(), UpdateItemInfoCleanness(), UpdateItemInfoDamage(), UpdateItemInfoFoodStage(), UpdateItemInfoLiquidType(), UpdateItemInfoQuantity(), UpdateItemInfoTemperature(), UpdateItemInfoWeight(), UpdateItemInfoWetness(), and UpdateSlotInfo().

Member Data Documentation

◆ AREA_LEFT

protected const int UIScriptedMenu::AREA_LEFT = 1
private

Definition at line 49 of file controlsxboxnew.c.

◆ AREA_RIGHT

protected const int UIScriptedMenu::AREA_RIGHT = 2
private

Definition at line 50 of file controlsxboxnew.c.

◆ BUTTON_XBOX_CONTROLS

const int UIScriptedMenu::BUTTON_XBOX_CONTROLS = 201
private

Definition at line 29 of file ingamemenuxbox.c.

Referenced by OnClick().

◆ CATEGORY_NAME

const string UIScriptedMenu::CATEGORY_NAME = "CategoryName"
private

Definition at line 118 of file gesturesmenu.c.

◆ CLEAR_IVN

bool UIScriptedMenu::CLEAR_IVN
staticprivate

Definition at line 20 of file scriptconsole.c.

◆ CONST_DEFAULT_PRESET_PREFIX

const string UIScriptedMenu::CONST_DEFAULT_PRESET_PREFIX = "[Default]"
private

Definition at line 17 of file sceneeditormenu.c.

◆ COORD_FORMAT

protected const string UIScriptedMenu::COORD_FORMAT = "%1.%2%3"
private

Definition at line 3 of file mapmenu.c.

◆ CREDIT_SCROLL_SPEED

protected float UIScriptedMenu::CREDIT_SCROLL_SPEED = 200.0
staticprivate

Definition at line 5 of file creditsmenu.c.

◆ DEBUG_MAP_ZOOM

float UIScriptedMenu::DEBUG_MAP_ZOOM = 1
staticprivate

Definition at line 14 of file scriptconsole.c.

◆ DEFAULT_POS_XYZ

const string UIScriptedMenu::DEFAULT_POS_XYZ = "<1,2,3>"
private

Definition at line 9 of file scriptconsole.c.

◆ DIALOG_TAB_OFFSET

const int UIScriptedMenu::DIALOG_TAB_OFFSET = 1400
private

Definition at line 4 of file optionsmenu.c.

Referenced by OnAttemptTabSwitch(), and OnModalResult().

◆ DRAW_DISTANCE

float UIScriptedMenu::DRAW_DISTANCE = 1000
staticprivate

Definition at line 21 of file scriptconsole.c.

Referenced by DrawItems().

◆ GESTURE_TEXT

const string UIScriptedMenu::GESTURE_TEXT = "GestureNameText"
private

Definition at line 116 of file gesturesmenu.c.

◆ ID_RESPAWN_CUSTOM

const int UIScriptedMenu::ID_RESPAWN_CUSTOM = 101
private

Definition at line 3 of file respawndialogue.c.

Referenced by OnClick(), OnFocus(), and OnMouseEnter().

◆ ID_RESPAWN_RANDOM

const int UIScriptedMenu::ID_RESPAWN_RANDOM = 102
private

Definition at line 4 of file respawndialogue.c.

Referenced by OnClick(), OnFocus(), and OnMouseEnter().

◆ INPUT_TEXT

const string UIScriptedMenu::INPUT_TEXT = "InputActionText"
private

Definition at line 117 of file gesturesmenu.c.

◆ instance [1/2]

GesturesMenu UIScriptedMenu::instance
staticprivate

Definition at line 126 of file gesturesmenu.c.

◆ instance [2/2]

RadialQuickbarMenu UIScriptedMenu::instance
staticprivate

Definition at line 104 of file radialquickbarmenu.c.

◆ ITEMS_IN_PRESET_SELECTED_ROW

int UIScriptedMenu::ITEMS_IN_PRESET_SELECTED_ROW
staticprivate

Definition at line 17 of file scriptconsole.c.

◆ ITEMS_SELECTED_ROW

int UIScriptedMenu::ITEMS_SELECTED_ROW = -1
staticprivate

Definition at line 15 of file scriptconsole.c.

◆ LOGO_FADEIN_TIME

protected float UIScriptedMenu::LOGO_FADEIN_TIME = 1.0
staticprivate

Definition at line 4 of file creditsmenu.c.

Referenced by Init().

◆ m_ActiveTabIdx

protected int UIScriptedMenu::m_ActiveTabIdx = 0
private

Definition at line 22 of file optionsmenu.c.

◆ m_ActorIdWidget

protected EditBoxWidget UIScriptedMenu::m_ActorIdWidget
private

Definition at line 35 of file cameratoolsmenu.c.

◆ m_ActorItemTypeWidget

protected EditBoxWidget UIScriptedMenu::m_ActorItemTypeWidget
private

Definition at line 36 of file cameratoolsmenu.c.

◆ m_Actors

protected ref array<ref CTActor> UIScriptedMenu::m_Actors
private

Definition at line 23 of file cameratoolsmenu.c.

◆ m_ActorTypeWidget

protected EditBoxWidget UIScriptedMenu::m_ActorTypeWidget
private

Definition at line 33 of file cameratoolsmenu.c.

◆ m_AddActor

protected ButtonWidget UIScriptedMenu::m_AddActor
private

Definition at line 40 of file cameratoolsmenu.c.

◆ m_AddEvent

protected ButtonWidget UIScriptedMenu::m_AddEvent
private

Definition at line 51 of file cameratoolsmenu.c.

◆ m_AddHandsItem

protected ButtonWidget UIScriptedMenu::m_AddHandsItem
private

Definition at line 39 of file cameratoolsmenu.c.

◆ m_AddItem

protected ButtonWidget UIScriptedMenu::m_AddItem
private

Definition at line 38 of file cameratoolsmenu.c.

◆ m_AddKeyframe

protected ButtonWidget UIScriptedMenu::m_AddKeyframe
private

Definition at line 46 of file cameratoolsmenu.c.

◆ m_Apply [1/2]

protected ButtonWidget UIScriptedMenu::m_Apply
private

Definition at line 15 of file charactercreationmenu.c.

Referenced by OnClick().

◆ m_Apply [2/2]

protected ButtonWidget UIScriptedMenu::m_Apply
private

Definition at line 10 of file keybindingsmenu.c.

◆ m_ApplyButton

protected ButtonWidget UIScriptedMenu::m_ApplyButton
private

Definition at line 57 of file cameratoolsmenu.c.

◆ m_AreasLR

protected ref map<int,ref TButtonPairingInfo> UIScriptedMenu::m_AreasLR
private

Definition at line 47 of file controlsxboxnew.c.

◆ m_author

protected TextWidget UIScriptedMenu::m_author
private

Definition at line 3 of file bookmenu.c.

◆ m_Back [1/2]

protected ButtonWidget UIScriptedMenu::m_Back
private

Definition at line 34 of file controlsxboxnew.c.

Referenced by OnClick().

◆ m_Back [2/2]

protected Widget UIScriptedMenu::m_Back
private

Definition at line 12 of file serverbrowsermenunew.c.

◆ m_BackButton

protected Widget UIScriptedMenu::m_BackButton
private

Definition at line 18 of file charactercreationmenu.c.

◆ m_BackButtonTextID

protected string UIScriptedMenu::m_BackButtonTextID
private

Definition at line 30 of file controlsxboxnew.c.

◆ m_BaseConfigClasses

ref TStringArray UIScriptedMenu::m_BaseConfigClasses = new TStringArray
private

Definition at line 28 of file scriptconsole.c.

◆ m_BaseConfigClassesToggled

ref TStringArray UIScriptedMenu::m_BaseConfigClassesToggled = new TStringArray
private

Definition at line 29 of file scriptconsole.c.

◆ m_BatchSpawnQuantity

EditBoxWidget UIScriptedMenu::m_BatchSpawnQuantity
private

Definition at line 2661 of file scriptconsole.c.

◆ m_bCancel

private ButtonWidget UIScriptedMenu::m_bCancel
private

Definition at line 7 of file logoutmenu.c.

◆ m_bCancelConsole

private ButtonWidget UIScriptedMenu::m_bCancelConsole
private

Definition at line 8 of file logoutmenu.c.

◆ m_bLogoutNow

private ButtonWidget UIScriptedMenu::m_bLogoutNow
private

Definition at line 6 of file logoutmenu.c.

◆ m_BlurEditWidget

protected EditBoxWidget UIScriptedMenu::m_BlurEditWidget
private

Definition at line 32 of file cameratoolsmenu.c.

◆ m_BottomSelector

protected ref OptionSelectorMultistateCharacterMenu UIScriptedMenu::m_BottomSelector
private

Definition at line 30 of file charactercreationmenu.c.

◆ m_btnLeave

protected ButtonWidget UIScriptedMenu::m_btnLeave
private

Definition at line 24 of file dayzgame.c.

◆ m_ButtonCopyPos

ButtonWidget UIScriptedMenu::m_ButtonCopyPos
private

Definition at line 2581 of file scriptconsole.c.

◆ m_ButtonsWindowWidget

Widget UIScriptedMenu::m_ButtonsWindowWidget
private

Definition at line 2561 of file scriptconsole.c.

◆ m_Camera1

protected Camera UIScriptedMenu::m_Camera1
private

Definition at line 9 of file cameratoolsmenu.c.

◆ m_Camera2

protected Camera UIScriptedMenu::m_Camera2
private

Definition at line 10 of file cameratoolsmenu.c.

◆ m_CameraEditbox

protected EditBoxWidget UIScriptedMenu::m_CameraEditbox
private

Definition at line 58 of file cameratoolsmenu.c.

◆ m_CameraLines

protected ref array<ref Param6<vector, vector, float, float, float, int> > UIScriptedMenu::m_CameraLines
private

Definition at line 12 of file cameratoolsmenu.c.

◆ m_Cameras

protected ref array<ref CTKeyframe> UIScriptedMenu::m_Cameras
private

Definition at line 24 of file cameratoolsmenu.c.

◆ m_CameraValues

protected TextWidget UIScriptedMenu::m_CameraValues
private

Definition at line 59 of file cameratoolsmenu.c.

◆ m_CanApplyOrReset

protected bool UIScriptedMenu::m_CanApplyOrReset
private

Definition at line 24 of file optionsmenu.c.

◆ m_CanToggle

protected bool UIScriptedMenu::m_CanToggle
private

Definition at line 25 of file optionsmenu.c.

◆ m_CanvasWidget

protected CanvasWidget UIScriptedMenu::m_CanvasWidget
private

Definition at line 38 of file controlsxboxnew.c.

◆ m_CategoryButtonsNames

ref array<string> UIScriptedMenu::m_CategoryButtonsNames = {"FIREARMS","MELEE","ATTACHMENTS","MAGAZINES","AMMO","FOOD","MEDICAL","CARS","BACKPACKS"}
private

Definition at line 32 of file scriptconsole.c.

◆ m_CategoryButtonsWidgets

ref array<Widget> UIScriptedMenu::m_CategoryButtonsWidgets = new array<Widget>
private

Definition at line 31 of file scriptconsole.c.

◆ m_CategoryMask

int UIScriptedMenu::m_CategoryMask
private

Definition at line 37 of file scriptconsole.c.

◆ m_CategoryMergeType

CheckBoxWidget UIScriptedMenu::m_CategoryMergeType
private

Definition at line 2613 of file scriptconsole.c.

◆ m_CategoryNameText

protected TextWidget UIScriptedMenu::m_CategoryNameText
private

Definition at line 112 of file gesturesmenu.c.

◆ m_CategoryStructure

protected ref map<int,Widget> UIScriptedMenu::m_CategoryStructure
private

Definition at line 46 of file controlsxboxnew.c.

◆ m_ChangeAccount

protected Widget UIScriptedMenu::m_ChangeAccount
private

Definition at line 12 of file mainmenuconsoles.c.

Referenced by OnClick().

◆ m_channel_text

private TextWidget UIScriptedMenu::m_channel_text
private

Definition at line 4 of file chatinputmenu.c.

◆ m_CharacterHeaderText

protected TextWidget UIScriptedMenu::m_CharacterHeaderText
private

Definition at line 24 of file charactercreationmenu.c.

◆ m_characterOrientation

private vector UIScriptedMenu::m_characterOrientation
private

Definition at line 9 of file inspectmenunew.c.

Referenced by UpdateRotation().

◆ m_CharacterRotationFrame

protected Widget UIScriptedMenu::m_CharacterRotationFrame
private

Definition at line 14 of file charactercreationmenu.c.

◆ m_characterRotationX

private int UIScriptedMenu::m_characterRotationX
private

Definition at line 6 of file inspectmenunew.c.

◆ m_characterRotationY

private int UIScriptedMenu::m_characterRotationY
private

Definition at line 7 of file inspectmenunew.c.

◆ m_characterScaleDelta

private int UIScriptedMenu::m_characterScaleDelta
private

Definition at line 8 of file inspectmenunew.c.

◆ m_ChooseServer

protected Widget UIScriptedMenu::m_ChooseServer
private

Definition at line 15 of file mainmenu.c.

Referenced by OnClick().

◆ m_ClassCheckboxes

protected ref map<CheckBoxWidget, int> UIScriptedMenu::m_ClassCheckboxes = new map<CheckBoxWidget, int>
private

Definition at line 10 of file scriptconsole.c.

◆ m_ClClassesList

protected ref TStringArray UIScriptedMenu::m_ClClassesList
private

Definition at line 1079 of file sceneeditormenu.c.

◆ m_ClearInventory

CheckBoxWidget UIScriptedMenu::m_ClearInventory
private

Definition at line 2611 of file scriptconsole.c.

◆ m_ClientLogClearButton

ButtonWidget UIScriptedMenu::m_ClientLogClearButton
private

Definition at line 2563 of file scriptconsole.c.

◆ m_ClientLogListbox

TextListboxWidget UIScriptedMenu::m_ClientLogListbox
private

Definition at line 2562 of file scriptconsole.c.

◆ m_ClientLogScrollCheckbox

CheckBoxWidget UIScriptedMenu::m_ClientLogScrollCheckbox
private

Definition at line 2564 of file scriptconsole.c.

◆ m_close_timer

private ref Timer UIScriptedMenu::m_close_timer
private

Definition at line 5 of file chatinputmenu.c.

◆ m_CloseConsoleButton

ButtonWidget UIScriptedMenu::m_CloseConsoleButton
private

Definition at line 6 of file helpscreen.c.

◆ m_ClSelectedClass

protected string UIScriptedMenu::m_ClSelectedClass
private

Definition at line 1078 of file sceneeditormenu.c.

◆ m_ClWgtButtonAddAtt

protected ButtonWidget UIScriptedMenu::m_ClWgtButtonAddAtt
private

Definition at line 1082 of file sceneeditormenu.c.

◆ m_ClWgtEbxFilter

protected EditBoxWidget UIScriptedMenu::m_ClWgtEbxFilter
private

Definition at line 1080 of file sceneeditormenu.c.

◆ m_ClWgtLbxClassesList

protected TextListboxWidget UIScriptedMenu::m_ClWgtLbxClassesList
private

Definition at line 1081 of file sceneeditormenu.c.

◆ m_CommunityTab

protected ref ServerBrowserTab UIScriptedMenu::m_CommunityTab
private

Definition at line 19 of file serverbrowsermenunew.c.

Referenced by GetSelectedTab().

◆ m_ConfigData

ref ConfigParamsEx UIScriptedMenu::m_ConfigData
staticprivate

Definition at line 8 of file scriptconsole.c.

◆ m_ConfigDebugProfile [1/2]

protected PluginConfigDebugProfile UIScriptedMenu::m_ConfigDebugProfile
private

Definition at line 1129 of file sceneeditormenu.c.

◆ m_ConfigDebugProfile [2/2]

PluginConfigDebugProfile UIScriptedMenu::m_ConfigDebugProfile
private

Definition at line 2848 of file scriptconsole.c.

◆ m_ConfigDebugProfileFixed [1/2]

protected PluginConfigDebugProfileFixed UIScriptedMenu::m_ConfigDebugProfileFixed
private

Definition at line 1128 of file sceneeditormenu.c.

◆ m_ConfigDebugProfileFixed [2/2]

PluginConfigDebugProfileFixed UIScriptedMenu::m_ConfigDebugProfileFixed
private

Definition at line 2849 of file scriptconsole.c.

◆ m_ConfigHierarchyTextListbox

TextListboxWidget UIScriptedMenu::m_ConfigHierarchyTextListbox
private

Definition at line 2665 of file scriptconsole.c.

◆ m_ConfigsButton

protected EditBoxWidget UIScriptedMenu::m_ConfigsButton
private

Definition at line 1119 of file sceneeditormenu.c.

◆ m_ConfigVariablesTextListbox

TextListboxWidget UIScriptedMenu::m_ConfigVariablesTextListbox
private

Definition at line 2666 of file scriptconsole.c.

◆ m_confirm_button

protected ButtonWidget UIScriptedMenu::m_confirm_button
private

Definition at line 5 of file notemenu.c.

◆ m_content

protected HtmlWidget UIScriptedMenu::m_content
private

Definition at line 6 of file bookmenu.c.

◆ m_Content

protected WrapSpacerWidget UIScriptedMenu::m_Content
private

Definition at line 24 of file creditsmenu.c.

◆ m_content_pos

protected float UIScriptedMenu::m_content_pos
private

Definition at line 9 of file bookmenu.c.

◆ m_content_total_height

protected float UIScriptedMenu::m_content_total_height
private

Definition at line 8 of file bookmenu.c.

◆ m_ContinueButton [1/2]

protected Widget UIScriptedMenu::m_ContinueButton
private

Definition at line 5 of file ingamemenu.c.

◆ m_ContinueButton [2/2]

protected ButtonWidget UIScriptedMenu::m_ContinueButton
private

Definition at line 18 of file ingamemenuxbox.c.

◆ m_Controls

protected Widget UIScriptedMenu::m_Controls
private

Definition at line 17 of file mainmenuconsoles.c.

Referenced by OnClick().

◆ m_ControlsButton

protected ButtonWidget UIScriptedMenu::m_ControlsButton
private

Definition at line 23 of file ingamemenuxbox.c.

◆ m_ControlsImage

protected Widget UIScriptedMenu::m_ControlsImage
private

Definition at line 41 of file controlsxboxnew.c.

◆ m_ControlsLayoutImage

protected ImageWidget UIScriptedMenu::m_ControlsLayoutImage
private

Definition at line 35 of file controlsxboxnew.c.

◆ m_ControlsTab

protected ref OptionsMenuControls UIScriptedMenu::m_ControlsTab
private

Definition at line 10 of file optionsmenu.c.

◆ m_CopyButton

protected ButtonWidget UIScriptedMenu::m_CopyButton
private

Definition at line 56 of file cameratoolsmenu.c.

◆ m_CopyInfoButton

protected Widget UIScriptedMenu::m_CopyInfoButton
private

Definition at line 16 of file ingamemenu.c.

◆ m_CopySoundset

ButtonWidget UIScriptedMenu::m_CopySoundset
private

Definition at line 2591 of file scriptconsole.c.

◆ m_CopyToClipboardButton

protected ButtonWidget UIScriptedMenu::m_CopyToClipboardButton
private

Definition at line 1115 of file sceneeditormenu.c.

◆ m_CreditsData

protected ref JsonDataCredits UIScriptedMenu::m_CreditsData
private

Definition at line 17 of file creditsmenu.c.

◆ m_CreditsEntries

protected ref array<ref CreditsElement> UIScriptedMenu::m_CreditsEntries = new array<ref CreditsElement>
private

Definition at line 20 of file creditsmenu.c.

◆ m_CurrentCategory

protected int UIScriptedMenu::m_CurrentCategory
private

Definition at line 123 of file gesturesmenu.c.

◆ m_CurrentlyHighlighted

protected Widget UIScriptedMenu::m_CurrentlyHighlighted
private

Definition at line 12 of file respawndialogue.c.

◆ m_CurrentPresetVariant

protected int UIScriptedMenu::m_CurrentPresetVariant = -1
private

Definition at line 32 of file controlsxboxnew.c.

◆ m_CurrentSettingAlternateKeyIndex

protected int UIScriptedMenu::m_CurrentSettingAlternateKeyIndex = -1
private

Definition at line 16 of file keybindingsmenu.c.

◆ m_CurrentSettingKeyIndex

protected int UIScriptedMenu::m_CurrentSettingKeyIndex = -1
private

Definition at line 15 of file keybindingsmenu.c.

◆ m_CurrentTabIdx

protected int UIScriptedMenu::m_CurrentTabIdx = -1
private

Definition at line 31 of file controlsxboxnew.c.

◆ m_CurrentTime

protected float UIScriptedMenu::m_CurrentTime = 0.0
private

Definition at line 19 of file creditsmenu.c.

◆ m_CustomizeCharacter

protected Widget UIScriptedMenu::m_CustomizeCharacter
private

Definition at line 16 of file mainmenu.c.

Referenced by OnClick().

◆ m_DamageEditBox [1/2]

protected EditBoxWidget UIScriptedMenu::m_DamageEditBox
private

Definition at line 1116 of file sceneeditormenu.c.

◆ m_DamageEditBox [2/2]

EditBoxWidget UIScriptedMenu::m_DamageEditBox
private

Definition at line 2642 of file scriptconsole.c.

◆ m_DateDay

EditBoxWidget UIScriptedMenu::m_DateDay
private

Definition at line 2587 of file scriptconsole.c.

◆ m_DateHour

EditBoxWidget UIScriptedMenu::m_DateHour
private

Definition at line 2588 of file scriptconsole.c.

◆ m_DateMinute

EditBoxWidget UIScriptedMenu::m_DateMinute
private

Definition at line 2589 of file scriptconsole.c.

◆ m_DateMonth

EditBoxWidget UIScriptedMenu::m_DateMonth
private

Definition at line 2586 of file scriptconsole.c.

◆ m_DateYear

EditBoxWidget UIScriptedMenu::m_DateYear
private

Definition at line 2585 of file scriptconsole.c.

◆ m_DebugMapWidget

MapWidget UIScriptedMenu::m_DebugMapWidget
private

Definition at line 2686 of file scriptconsole.c.

◆ m_DebugShapes

ref array<Shape> UIScriptedMenu::m_DebugShapes = new array<Shape>
staticprivate

Definition at line 22 of file scriptconsole.c.

◆ m_Defaults

protected ButtonWidget UIScriptedMenu::m_Defaults
private

Definition at line 13 of file keybindingsmenu.c.

Referenced by OnClick().

◆ m_DeleteEvent

protected ButtonWidget UIScriptedMenu::m_DeleteEvent
private

Definition at line 53 of file cameratoolsmenu.c.

◆ m_DeleteKeyframe

protected ButtonWidget UIScriptedMenu::m_DeleteKeyframe
private

Definition at line 48 of file cameratoolsmenu.c.

◆ m_DescriptionText

private TextWidget UIScriptedMenu::m_DescriptionText
private

Definition at line 5 of file logoutmenu.c.

◆ m_Details

protected Widget UIScriptedMenu::m_Details
private

Definition at line 19 of file optionsmenu.c.

◆ m_DetailsLabel

protected TextWidget UIScriptedMenu::m_DetailsLabel
private

Definition at line 22 of file charactercreationmenu.c.

◆ m_DetailsRoot

protected Widget UIScriptedMenu::m_DetailsRoot
private

Definition at line 21 of file charactercreationmenu.c.

◆ m_DetailsText

protected RichTextWidget UIScriptedMenu::m_DetailsText
private

Definition at line 23 of file charactercreationmenu.c.

◆ m_Developer [1/2]

protected PluginDeveloper UIScriptedMenu::m_Developer
private

Definition at line 1126 of file sceneeditormenu.c.

◆ m_Developer [2/2]

PluginDeveloper UIScriptedMenu::m_Developer
private

Definition at line 2847 of file scriptconsole.c.

◆ m_DiagDrawButton

ButtonWidget UIScriptedMenu::m_DiagDrawButton
private

Definition at line 2570 of file scriptconsole.c.

◆ m_DiagDrawmodeTextListbox

TextListboxWidget UIScriptedMenu::m_DiagDrawmodeTextListbox
private

Definition at line 2569 of file scriptconsole.c.

◆ m_DiagToggleButton

ButtonWidget UIScriptedMenu::m_DiagToggleButton
private

Definition at line 2567 of file scriptconsole.c.

◆ m_DiagToggleTextListbox

TextListboxWidget UIScriptedMenu::m_DiagToggleTextListbox
private

Definition at line 2566 of file scriptconsole.c.

◆ m_DownButton

protected ButtonWidget UIScriptedMenu::m_DownButton
private

Definition at line 1110 of file sceneeditormenu.c.

◆ m_DrawDistanceWidget

EditBoxWidget UIScriptedMenu::m_DrawDistanceWidget
private

Definition at line 2640 of file scriptconsole.c.

◆ m_DrawInWorld

ButtonWidget UIScriptedMenu::m_DrawInWorld
private

Definition at line 2571 of file scriptconsole.c.

◆ m_DrawInWorldClear

ButtonWidget UIScriptedMenu::m_DrawInWorldClear
private

Definition at line 2572 of file scriptconsole.c.

◆ m_edit

protected MultilineEditBoxWidget UIScriptedMenu::m_edit
private

Definition at line 3 of file notemenu.c.

◆ m_edit_box

private EditBoxWidget UIScriptedMenu::m_edit_box
private

Definition at line 3 of file chatinputmenu.c.

◆ m_Editbox

EditBoxWidget UIScriptedMenu::m_Editbox
private

Definition at line 47 of file scriptconsolenewpresetdialog.c.

◆ m_EnfScriptEdit

MultilineEditBoxWidget UIScriptedMenu::m_EnfScriptEdit
private

Definition at line 2574 of file scriptconsole.c.

◆ m_EnfScriptRun

ButtonWidget UIScriptedMenu::m_EnfScriptRun
private

Definition at line 2575 of file scriptconsole.c.

◆ m_EnscriptConsoleHistory

ref TStringArray UIScriptedMenu::m_EnscriptConsoleHistory
private

Definition at line 2554 of file scriptconsole.c.

◆ m_EnscriptConsoleHistoryServer

ref TStringArray UIScriptedMenu::m_EnscriptConsoleHistoryServer
private

Definition at line 2555 of file scriptconsole.c.

◆ m_EnscriptHistoryRow

int UIScriptedMenu::m_EnscriptHistoryRow
private

Definition at line 2552 of file scriptconsole.c.

◆ m_EnscriptHistoryRowServer

int UIScriptedMenu::m_EnscriptHistoryRowServer
private

Definition at line 2553 of file scriptconsole.c.

◆ m_EventContent

protected Widget UIScriptedMenu::m_EventContent
private

Definition at line 28 of file cameratoolsmenu.c.

◆ m_Events

protected ref array<ref CTEvent> UIScriptedMenu::m_Events
private

Definition at line 25 of file cameratoolsmenu.c.

◆ m_Exit

protected Widget UIScriptedMenu::m_Exit
private

Definition at line 22 of file mainmenu.c.

◆ m_ExitButton [1/2]

protected Widget UIScriptedMenu::m_ExitButton
private

Definition at line 6 of file ingamemenu.c.

◆ m_ExitButton [2/2]

protected ButtonWidget UIScriptedMenu::m_ExitButton
private

Definition at line 19 of file ingamemenuxbox.c.

◆ m_FavoriteButton

protected Widget UIScriptedMenu::m_FavoriteButton
private

Definition at line 13 of file ingamemenu.c.

◆ m_FavoriteImage

protected Widget UIScriptedMenu::m_FavoriteImage
private

Definition at line 14 of file ingamemenu.c.

◆ m_Favorites

protected ref TStringArray UIScriptedMenu::m_Favorites
private

Definition at line 24 of file serverbrowsermenunew.c.

Referenced by GetFavoritedServerIds().

◆ m_FavoritesTab

protected ref ServerBrowserTab UIScriptedMenu::m_FavoritesTab
private

Definition at line 20 of file serverbrowsermenunew.c.

Referenced by GetSelectedTab().

◆ m_FollowingBone

protected ref Param2<int, int> UIScriptedMenu::m_FollowingBone
private

Definition at line 17 of file cameratoolsmenu.c.

◆ m_FollowingTimeFinished

protected float UIScriptedMenu::m_FollowingTimeFinished
private

Definition at line 16 of file cameratoolsmenu.c.

◆ m_FreeflightCamTransform

vector UIScriptedMenu::m_FreeflightCamTransform[4]
private

Definition at line 4 of file cameratoolsmenu.c.

◆ m_GameTab

protected ref OptionsMenuGame UIScriptedMenu::m_GameTab
private

Definition at line 7 of file optionsmenu.c.

◆ m_GenderSelector

protected ref OptionSelectorMultistateCharacterMenu UIScriptedMenu::m_GenderSelector
private

Definition at line 27 of file charactercreationmenu.c.

◆ m_GestureItemCardPanel

protected Widget UIScriptedMenu::m_GestureItemCardPanel
private

Definition at line 108 of file gesturesmenu.c.

◆ m_GestureItems

protected ref array<ref GestureMenuItem> UIScriptedMenu::m_GestureItems
private

Definition at line 109 of file gesturesmenu.c.

◆ m_GPSMarker

protected Widget UIScriptedMenu::m_GPSMarker
private

Definition at line 20 of file mapmenu.c.

◆ m_GPSMarkerArrow

protected ImageWidget UIScriptedMenu::m_GPSMarkerArrow
private

Definition at line 21 of file mapmenu.c.

◆ m_GroupsContainer

protected ref KeybindingsContainer UIScriptedMenu::m_GroupsContainer
private

Definition at line 6 of file keybindingsmenu.c.

Referenced by GetCurrentTab().

◆ m_HelpTextListboxWidget

TextListboxWidget UIScriptedMenu::m_HelpTextListboxWidget
private

Definition at line 2669 of file scriptconsole.c.

◆ m_HintPanel

protected ref UiHintPanel UIScriptedMenu::m_HintPanel
private

Definition at line 23 of file ingamemenu.c.

◆ m_html

protected HtmlWidget UIScriptedMenu::m_html
private

Definition at line 4 of file notemenu.c.

◆ m_Hud

protected ref IngameHud UIScriptedMenu::m_Hud
private

Definition at line 14 of file mapmenu.c.

◆ m_HudDCharAgents

CheckBoxWidget UIScriptedMenu::m_HudDCharAgents
private

Definition at line 2605 of file scriptconsole.c.

◆ m_HudDCharDebug

CheckBoxWidget UIScriptedMenu::m_HudDCharDebug
private

Definition at line 2606 of file scriptconsole.c.

◆ m_HudDCharLevels

CheckBoxWidget UIScriptedMenu::m_HudDCharLevels
private

Definition at line 2602 of file scriptconsole.c.

◆ m_HudDCharModifiers

CheckBoxWidget UIScriptedMenu::m_HudDCharModifiers
private

Definition at line 2604 of file scriptconsole.c.

◆ m_HudDCharStats

CheckBoxWidget UIScriptedMenu::m_HudDCharStats
private

Definition at line 2601 of file scriptconsole.c.

◆ m_HudDCharStomach

CheckBoxWidget UIScriptedMenu::m_HudDCharStomach
private

Definition at line 2603 of file scriptconsole.c.

◆ m_HudDFreeCamCross

CheckBoxWidget UIScriptedMenu::m_HudDFreeCamCross
private

Definition at line 2607 of file scriptconsole.c.

◆ m_HudDTemperature

CheckBoxWidget UIScriptedMenu::m_HudDTemperature
private

Definition at line 2612 of file scriptconsole.c.

◆ m_HudDVersion

CheckBoxWidget UIScriptedMenu::m_HudDVersion
private

Definition at line 2608 of file scriptconsole.c.

◆ m_image

ImageWidget UIScriptedMenu::m_image
private

Definition at line 39 of file loadingmenu.c.

◆ m_ImageMarkerStructure

protected ref map<int,Widget> UIScriptedMenu::m_ImageMarkerStructure
private

Definition at line 45 of file controlsxboxnew.c.

◆ m_Images

protected ImageWidget UIScriptedMenu::m_Images
private

Definition at line 19 of file mapmenu.c.

◆ m_Info

private TextWidget UIScriptedMenu::m_Info
private

Definition at line 4 of file invitemenu.c.

◆ m_InfoPanel

protected Widget UIScriptedMenu::m_InfoPanel
private

Definition at line 26 of file creditsmenu.c.

◆ m_InfoPanelText

protected RichTextWidget UIScriptedMenu::m_InfoPanelText
private

Definition at line 25 of file creditsmenu.c.

◆ m_InfoTextLeft

protected Widget UIScriptedMenu::m_InfoTextLeft
private

Definition at line 11 of file tutorialsmenu.c.

◆ m_InfoTextRight

protected Widget UIScriptedMenu::m_InfoTextRight
private

Definition at line 12 of file tutorialsmenu.c.

◆ m_Instance

protected CameraToolsMenu UIScriptedMenu::m_Instance
staticprivate

Definition at line 3 of file cameratoolsmenu.c.

◆ m_InterpTypeCombo

protected XComboBoxWidget UIScriptedMenu::m_InterpTypeCombo
private

Definition at line 31 of file cameratoolsmenu.c.

◆ m_InterpTypeSpeedCombo

protected XComboBoxWidget UIScriptedMenu::m_InterpTypeSpeedCombo
private

Definition at line 30 of file cameratoolsmenu.c.

◆ m_iPosition

protected int UIScriptedMenu::m_iPosition
private

Definition at line 26 of file dayzgame.c.

◆ m_IsCategorySelected

protected bool UIScriptedMenu::m_IsCategorySelected
private

Definition at line 121 of file gesturesmenu.c.

◆ m_IsMenuClosing

protected bool UIScriptedMenu::m_IsMenuClosing
private

Definition at line 122 of file gesturesmenu.c.

◆ m_IsOpenning

protected bool m_HasCompass protected bool m_HasGPS protected bool UIScriptedMenu::m_IsOpenning
private

Definition at line 10 of file mapmenu.c.

◆ m_IsPaused

bool UIScriptedMenu::m_IsPaused
private

Definition at line 9 of file mainmenuvideo.c.

◆ m_IsPlaying

protected bool UIScriptedMenu::m_IsPlaying
private

Definition at line 13 of file cameratoolsmenu.c.

◆ m_IsRefreshing

protected TabType UIScriptedMenu::m_IsRefreshing = TabType.NONE
private

Definition at line 23 of file serverbrowsermenunew.c.

Referenced by GetServersLoadingTab().

◆ m_IsRespawn

protected bool UIScriptedMenu::m_IsRespawn
private

Definition at line 143 of file dayzgame.c.

◆ m_IsStatic

protected bool UIScriptedMenu::m_IsStatic
private

Definition at line 27 of file dayzgame.c.

◆ m_IsWriting

protected bool UIScriptedMenu::m_IsWriting
private

Definition at line 8 of file notemenu.c.

◆ m_item_widget

private ItemPreviewWidget UIScriptedMenu::m_item_widget
private

Definition at line 4 of file inspectmenunew.c.

◆ m_ItemCardPanel

protected Widget UIScriptedMenu::m_ItemCardPanel
private

Definition at line 90 of file radialquickbarmenu.c.

◆ m_ItemDamageLabel

TextWidget UIScriptedMenu::m_ItemDamageLabel
private

Definition at line 2643 of file scriptconsole.c.

◆ m_ItemDisagPlugin

PluginItemDiagnostic UIScriptedMenu::m_ItemDisagPlugin
private

Definition at line 30 of file scriptconsole.c.

◆ m_ItemMoveDownButton

ButtonWidget UIScriptedMenu::m_ItemMoveDownButton
private

Definition at line 2638 of file scriptconsole.c.

◆ m_ItemMoveUpButton

ButtonWidget UIScriptedMenu::m_ItemMoveUpButton
private

Definition at line 2637 of file scriptconsole.c.

◆ m_ItemNameCopy

ButtonWidget UIScriptedMenu::m_ItemNameCopy
private

Definition at line 2635 of file scriptconsole.c.

◆ m_ItemPreviewCheckbox

CheckBoxWidget UIScriptedMenu::m_ItemPreviewCheckbox
private

Definition at line 2614 of file scriptconsole.c.

◆ m_ItemPreviewWidget

ItemPreviewWidget UIScriptedMenu::m_ItemPreviewWidget
private

Definition at line 2668 of file scriptconsole.c.

◆ m_ItemQuantityLabel

TextWidget UIScriptedMenu::m_ItemQuantityLabel
private

Definition at line 2644 of file scriptconsole.c.

◆ m_Items

protected ref array<ref RadialQuickbarItem> UIScriptedMenu::m_Items
private

Definition at line 91 of file radialquickbarmenu.c.

◆ m_ItemToAssign

EntityAI UIScriptedMenu::m_ItemToAssign
staticprivate

Definition at line 101 of file radialquickbarmenu.c.

◆ m_iTime

private int UIScriptedMenu::m_iTime
private

Definition at line 5 of file invitemenu.c.

◆ m_KBDropdown

protected ref DropdownPrefab UIScriptedMenu::m_KBDropdown
private

Definition at line 4 of file keybindingsmenu.c.

◆ m_KeyBindingsTextListboxWidget

TextListboxWidget UIScriptedMenu::m_KeyBindingsTextListboxWidget
private

Definition at line 3 of file helpscreen.c.

◆ m_KeybindsTab

protected ref TutorialKeybinds UIScriptedMenu::m_KeybindsTab
private

Definition at line 19 of file tutorialsmenu.c.

◆ m_KeyframeContent

protected Widget UIScriptedMenu::m_KeyframeContent
private

Definition at line 27 of file cameratoolsmenu.c.

◆ m_label

TextWidget UIScriptedMenu::m_label
private

Definition at line 37 of file loadingmenu.c.

◆ m_Label

TextWidget UIScriptedMenu::m_Label
private

Definition at line 48 of file scriptconsolenewpresetdialog.c.

◆ m_LANTab

protected ref ServerBrowserTab UIScriptedMenu::m_LANTab
private

Definition at line 21 of file serverbrowsermenunew.c.

Referenced by GetSelectedTab().

◆ m_LastFocusedButton

protected ref Widget UIScriptedMenu::m_LastFocusedButton
private

Definition at line 36 of file mainmenu.c.

◆ m_LastPlayedTooltip

protected Widget UIScriptedMenu::m_LastPlayedTooltip
private

Definition at line 29 of file mainmenu.c.

◆ m_LastPlayedTooltipIP

protected TextWidget UIScriptedMenu::m_LastPlayedTooltipIP
private

Definition at line 32 of file mainmenu.c.

◆ m_LastPlayedTooltipLabel

protected Widget UIScriptedMenu::m_LastPlayedTooltipLabel
private

Definition at line 30 of file mainmenu.c.

◆ m_LastPlayedTooltipName

protected TextWidget UIScriptedMenu::m_LastPlayedTooltipName
private

Definition at line 31 of file mainmenu.c.

◆ m_LastPlayedTooltipPort

protected TextWidget UIScriptedMenu::m_LastPlayedTooltipPort
private

Definition at line 33 of file mainmenu.c.

◆ m_LastPlayedTooltipTimer

protected ref WidgetFadeTimer UIScriptedMenu::m_LastPlayedTooltipTimer
private

Definition at line 35 of file mainmenu.c.

◆ m_LastSelectedObject

string UIScriptedMenu::m_LastSelectedObject
staticprivate

Definition at line 2621 of file scriptconsole.c.

Referenced by GetLastSelectedObject().

◆ m_LateInit

ref Timer UIScriptedMenu::m_LateInit = new Timer()
private

Definition at line 34 of file scriptconsole.c.

◆ m_LegendResizer

protected ref SizeToChild UIScriptedMenu::m_LegendResizer
private

Definition at line 17 of file mapmenu.c.

◆ m_Load

protected ButtonWidget UIScriptedMenu::m_Load
private

Definition at line 44 of file cameratoolsmenu.c.

◆ m_Logo

protected ImageWidget UIScriptedMenu::m_Logo
private

Definition at line 22 of file creditsmenu.c.

◆ m_LogoFadeInIncrement

protected float UIScriptedMenu::m_LogoFadeInIncrement
private

Definition at line 10 of file creditsmenu.c.

◆ m_LogoFadeInLevel

protected float UIScriptedMenu::m_LogoFadeInLevel
private

Definition at line 11 of file creditsmenu.c.

◆ m_LogoutTimetext

private TextWidget UIScriptedMenu::m_LogoutTimetext
private

Definition at line 3 of file invitemenu.c.

◆ m_LogoutTimeText

private TextWidget UIScriptedMenu::m_LogoutTimeText
private

Definition at line 4 of file logoutmenu.c.

◆ m_LogsEnabled

CheckBoxWidget UIScriptedMenu::m_LogsEnabled
private

Definition at line 2600 of file scriptconsole.c.

◆ m_Map

protected ItemMap UIScriptedMenu::m_Map
private

Definition at line 32 of file mapmenu.c.

◆ m_MapMenuHandler

protected ref MapHandler UIScriptedMenu::m_MapMenuHandler
private

Definition at line 15 of file mapmenu.c.

◆ m_MapNavigationBehaviour

protected ref MapNavigationBehaviour UIScriptedMenu::m_MapNavigationBehaviour
private

Definition at line 35 of file mapmenu.c.

◆ m_MapPos

vector UIScriptedMenu::m_MapPos
private

Definition at line 11 of file scriptconsole.c.

Referenced by GetMapPos().

◆ m_MapWidgetInstance

protected ref MapWidget UIScriptedMenu::m_MapWidgetInstance
private

Definition at line 16 of file mapmenu.c.

◆ m_MenuFadeInIncrement

protected float UIScriptedMenu::m_MenuFadeInIncrement
private

Definition at line 7 of file creditsmenu.c.

◆ m_MenuFadeInLevel

protected float UIScriptedMenu::m_MenuFadeInLevel
private

Definition at line 8 of file creditsmenu.c.

◆ m_MenuFadeInLevel2

protected float UIScriptedMenu::m_MenuFadeInLevel2 = 1
private

Definition at line 9 of file creditsmenu.c.

◆ m_Message

TextWidget UIScriptedMenu::m_Message
private

Definition at line 49 of file scriptconsolenewpresetdialog.c.

◆ m_MessageButton

protected Widget UIScriptedMenu::m_MessageButton
private

Definition at line 20 of file mainmenu.c.

◆ m_Mission

protected MissionMainMenu UIScriptedMenu::m_Mission
private

Definition at line 6 of file mainmenu.c.

◆ m_MissionGameplay

MissionGameplay UIScriptedMenu::m_MissionGameplay
private

Definition at line 2558 of file scriptconsole.c.

◆ m_ModalLock

protected bool UIScriptedMenu::m_ModalLock
private

Definition at line 23 of file optionsmenu.c.

◆ m_ModdedWarning

protected ref TextWidget UIScriptedMenu::m_ModdedWarning
private

Definition at line 18 of file ingamemenu.c.

◆ m_ModsDetailed

protected ref ModsMenuDetailed UIScriptedMenu::m_ModsDetailed
private

Definition at line 40 of file mainmenu.c.

Referenced by LoadMods().

◆ m_ModsSimple

protected ref ModsMenuSimple UIScriptedMenu::m_ModsSimple
private

Definition at line 39 of file mainmenu.c.

Referenced by LoadMods().

◆ m_ModsTooltip

protected ref ModsMenuTooltip UIScriptedMenu::m_ModsTooltip
private

Definition at line 41 of file mainmenu.c.

◆ m_ModuleConfigViewer

PluginConfigViewer UIScriptedMenu::m_ModuleConfigViewer
private

Definition at line 2850 of file scriptconsole.c.

◆ m_ModuleLocalEnscriptHistory

PluginLocalEnscriptHistory UIScriptedMenu::m_ModuleLocalEnscriptHistory
private

Definition at line 2556 of file scriptconsole.c.

◆ m_ModuleLocalEnscriptHistoryServer

PluginLocalEnscriptHistoryServer UIScriptedMenu::m_ModuleLocalEnscriptHistoryServer
private

Definition at line 2557 of file scriptconsole.c.

◆ m_ModuleSceneManager

protected PluginSceneManager UIScriptedMenu::m_ModuleSceneManager
private

Definition at line 1050 of file sceneeditormenu.c.

◆ m_MouseBindingsTextListboxWidget

TextListboxWidget UIScriptedMenu::m_MouseBindingsTextListboxWidget
private

Definition at line 4 of file helpscreen.c.

◆ m_MouseCurPos

TextWidget UIScriptedMenu::m_MouseCurPos
private

Definition at line 2597 of file scriptconsole.c.

◆ m_MuteButtonTextID

protected string UIScriptedMenu::m_MuteButtonTextID
private

Definition at line 6 of file ingamemenuxbox.c.

◆ m_NameSelector

protected ref OptionSelectorEditbox UIScriptedMenu::m_NameSelector
private

Definition at line 26 of file charactercreationmenu.c.

◆ m_NewsMain

protected Widget UIScriptedMenu::m_NewsMain
private

Definition at line 23 of file mainmenu.c.

◆ m_NewsSec1

protected Widget UIScriptedMenu::m_NewsSec1
private

Definition at line 24 of file mainmenu.c.

◆ m_NewsSec2

protected Widget UIScriptedMenu::m_NewsSec2
private

Definition at line 25 of file mainmenu.c.

◆ m_NextCameraIndex

protected int UIScriptedMenu::m_NextCameraIndex = 1
private

Definition at line 14 of file cameratoolsmenu.c.

◆ m_NextCamPosition

protected vector UIScriptedMenu::m_NextCamPosition
private

Definition at line 5 of file cameratoolsmenu.c.

◆ m_NextCharacter

protected Widget UIScriptedMenu::m_NextCharacter
private

Definition at line 27 of file mainmenu.c.

◆ m_NotifyFadeTimer

protected ref WidgetFadeTimer UIScriptedMenu::m_NotifyFadeTimer
private

Definition at line 1098 of file sceneeditormenu.c.

◆ m_NotifyWgtPanel

protected Widget UIScriptedMenu::m_NotifyWgtPanel
private

Definition at line 1099 of file sceneeditormenu.c.

◆ m_ObjectConfigFilter

EditBoxWidget UIScriptedMenu::m_ObjectConfigFilter
private

Definition at line 2664 of file scriptconsole.c.

◆ m_ObjectFilter

EditBoxWidget UIScriptedMenu::m_ObjectFilter
private

Definition at line 2617 of file scriptconsole.c.

◆ m_ObjectsScope

int UIScriptedMenu::m_ObjectsScope = 2
staticprivate

Definition at line 18 of file scriptconsole.c.

◆ m_ObjectsTextListbox

TextListboxWidget UIScriptedMenu::m_ObjectsTextListbox
private

Definition at line 2623 of file scriptconsole.c.

◆ m_OfficialTab

protected ref ServerBrowserTab UIScriptedMenu::m_OfficialTab
private

Definition at line 18 of file serverbrowsermenunew.c.

Referenced by GetSelectedTab().

◆ m_OnlineButton

protected ButtonWidget UIScriptedMenu::m_OnlineButton
private

Definition at line 24 of file ingamemenuxbox.c.

◆ m_OnlineMenu

protected Widget UIScriptedMenu::m_OnlineMenu
private

Definition at line 16 of file ingamemenuxbox.c.

◆ m_OpenDLC

protected Widget UIScriptedMenu::m_OpenDLC
private

Definition at line 11 of file mainmenuconsoles.c.

Referenced by OnClick().

◆ m_OpenedPopups

protected ref TIntArray UIScriptedMenu::m_OpenedPopups
private

Definition at line 1065 of file sceneeditormenu.c.

◆ m_OpenGameCardButtonTextID

protected string UIScriptedMenu::m_OpenGameCardButtonTextID
private

Definition at line 10 of file ingamemenuxbox.c.

◆ m_Options [1/2]

protected Widget UIScriptedMenu::m_Options
private

Definition at line 16 of file mainmenuconsoles.c.

Referenced by OnClick().

◆ m_Options [2/2]

protected ref GameOptions UIScriptedMenu::m_Options
private

Definition at line 12 of file optionsmenu.c.

◆ m_OptionsButton [1/2]

protected Widget UIScriptedMenu::m_OptionsButton
private

Definition at line 11 of file ingamemenu.c.

◆ m_OptionsButton [2/2]

protected ButtonWidget UIScriptedMenu::m_OptionsButton
private

Definition at line 22 of file ingamemenuxbox.c.

◆ m_OriginalCharacterID

int UIScriptedMenu::m_OriginalCharacterID
private

Definition at line 33 of file charactercreationmenu.c.

◆ m_OriginalPresetIndex

protected int UIScriptedMenu::m_OriginalPresetIndex
private

Definition at line 17 of file keybindingsmenu.c.

◆ m_page

protected TextWidget UIScriptedMenu::m_page
private

Definition at line 5 of file bookmenu.c.

◆ m_page_height

protected float UIScriptedMenu::m_page_height
private

Definition at line 7 of file bookmenu.c.

Referenced by NextPrevPage().

◆ m_Paper

protected ItemBase UIScriptedMenu::m_Paper
private

Definition at line 6 of file notemenu.c.

◆ m_Pen

protected EntityAI UIScriptedMenu::m_Pen
private

Definition at line 7 of file notemenu.c.

◆ m_PenColor

protected string UIScriptedMenu::m_PenColor
private

Definition at line 11 of file notemenu.c.

◆ m_PlatformHolder

protected Widget UIScriptedMenu::m_PlatformHolder
private

Definition at line 42 of file controlsxboxnew.c.

◆ m_Play [1/2]

protected Widget UIScriptedMenu::m_Play
private

Definition at line 41 of file cameratoolsmenu.c.

Referenced by Init(), and OnClick().

◆ m_Play [2/2]

protected Widget UIScriptedMenu::m_Play
private

Definition at line 14 of file mainmenu.c.

◆ m_PlayedCharacterInfo

protected Widget UIScriptedMenu::m_PlayedCharacterInfo
private

Definition at line 19 of file charactercreationmenu.c.

◆ m_PlayerAlive

protected bool UIScriptedMenu::m_PlayerAlive
private

Definition at line 12 of file ingamemenuxbox.c.

◆ m_PlayerCurPos

TextWidget UIScriptedMenu::m_PlayerCurPos
private

Definition at line 2596 of file scriptconsole.c.

◆ m_PlayerDebugStats

ref array<ref RemotePlayerStatDebug> UIScriptedMenu::m_PlayerDebugStats = new array<ref RemotePlayerStatDebug>
private

Definition at line 2789 of file scriptconsole.c.

◆ m_PlayerMouseDiff

TextWidget UIScriptedMenu::m_PlayerMouseDiff
private

Definition at line 2598 of file scriptconsole.c.

◆ m_PlayerName

protected TextWidget UIScriptedMenu::m_PlayerName
private

Definition at line 9 of file mainmenu.c.

◆ m_PlayerPosRefreshBlocked

bool UIScriptedMenu::m_PlayerPosRefreshBlocked
private

Definition at line 12 of file scriptconsole.c.

◆ m_PlayPauseText

protected TextWidget UIScriptedMenu::m_PlayPauseText
private

Definition at line 5 of file mainmenuvideo.c.

◆ m_PlaySoundset

ButtonWidget UIScriptedMenu::m_PlaySoundset
private

Definition at line 2592 of file scriptconsole.c.

◆ m_PlaySoundsetButton

ButtonWidget UIScriptedMenu::m_PlaySoundsetButton
private

Definition at line 2654 of file scriptconsole.c.

◆ m_PlaySoundsetLooped

ButtonWidget UIScriptedMenu::m_PlaySoundsetLooped
private

Definition at line 2593 of file scriptconsole.c.

◆ m_PlayVideo

protected Widget UIScriptedMenu::m_PlayVideo
private

Definition at line 17 of file mainmenu.c.

Referenced by OnClick().

◆ m_Popups

protected ref map<int, ref UIPopupScript> UIScriptedMenu::m_Popups
private

Definition at line 1066 of file sceneeditormenu.c.

◆ m_PopupScriptPositionManager

protected UIPopupScriptPositionManager UIScriptedMenu::m_PopupScriptPositionManager
private

Definition at line 1127 of file sceneeditormenu.c.

◆ m_PositionsListbox

TextListboxWidget UIScriptedMenu::m_PositionsListbox
private

Definition at line 2599 of file scriptconsole.c.

◆ m_PresetAddItemtButton [1/2]

protected ButtonWidget UIScriptedMenu::m_PresetAddItemtButton
private

Definition at line 1104 of file sceneeditormenu.c.

◆ m_PresetAddItemtButton [2/2]

ButtonWidget UIScriptedMenu::m_PresetAddItemtButton
private

Definition at line 2634 of file scriptconsole.c.

◆ m_PresetDeleteButton [1/2]

protected ButtonWidget UIScriptedMenu::m_PresetDeleteButton
private

Definition at line 1112 of file sceneeditormenu.c.

◆ m_PresetDeleteButton [2/2]

ButtonWidget UIScriptedMenu::m_PresetDeleteButton
private

Definition at line 2631 of file scriptconsole.c.

◆ m_PresetItemsTextListbox [1/2]

protected TextListboxWidget UIScriptedMenu::m_PresetItemsTextListbox
private

Definition at line 1103 of file sceneeditormenu.c.

◆ m_PresetItemsTextListbox [2/2]

TextListboxWidget UIScriptedMenu::m_PresetItemsTextListbox
private

Definition at line 2629 of file scriptconsole.c.

◆ m_PresetNewButton [1/2]

protected ButtonWidget UIScriptedMenu::m_PresetNewButton
private

Definition at line 1111 of file sceneeditormenu.c.

◆ m_PresetNewButton [2/2]

ButtonWidget UIScriptedMenu::m_PresetNewButton
private

Definition at line 2630 of file scriptconsole.c.

◆ m_PresetRemoveItemButton [1/2]

protected ButtonWidget UIScriptedMenu::m_PresetRemoveItemButton
private

Definition at line 1105 of file sceneeditormenu.c.

◆ m_PresetRemoveItemButton [2/2]

ButtonWidget UIScriptedMenu::m_PresetRemoveItemButton
private

Definition at line 2636 of file scriptconsole.c.

◆ m_PresetRenameButton [1/2]

protected ButtonWidget UIScriptedMenu::m_PresetRenameButton
private

Definition at line 1113 of file sceneeditormenu.c.

◆ m_PresetRenameButton [2/2]

ButtonWidget UIScriptedMenu::m_PresetRenameButton
private

Definition at line 2632 of file scriptconsole.c.

◆ m_PresetSelector

protected ref OptionSelectorMultistate UIScriptedMenu::m_PresetSelector
private

Definition at line 5 of file keybindingsmenu.c.

◆ m_PresetSetDefaultButton [1/2]

protected ButtonWidget UIScriptedMenu::m_PresetSetDefaultButton
private

Definition at line 1114 of file sceneeditormenu.c.

◆ m_PresetSetDefaultButton [2/2]

ButtonWidget UIScriptedMenu::m_PresetSetDefaultButton
private

Definition at line 2633 of file scriptconsole.c.

◆ m_PresetsTextListbox [1/2]

protected TextListboxWidget UIScriptedMenu::m_PresetsTextListbox
private

Definition at line 1102 of file sceneeditormenu.c.

◆ m_PresetsTextListbox [2/2]

TextListboxWidget UIScriptedMenu::m_PresetsTextListbox
private

Definition at line 2628 of file scriptconsole.c.

◆ m_PrevCharacter

protected Widget UIScriptedMenu::m_PrevCharacter
private

Definition at line 26 of file mainmenu.c.

◆ m_PreviewEntity

EntityAI UIScriptedMenu::m_PreviewEntity
staticprivate

Definition at line 23 of file scriptconsole.c.

◆ m_progressBar

ProgressBarWidget UIScriptedMenu::m_progressBar
private

Definition at line 38 of file loadingmenu.c.

◆ m_PrWgtAttRoot

protected Widget UIScriptedMenu::m_PrWgtAttRoot
private

Definition at line 1092 of file sceneeditormenu.c.

◆ m_PrWgtAttTitle

protected Widget UIScriptedMenu::m_PrWgtAttTitle
private

Definition at line 1093 of file sceneeditormenu.c.

◆ m_PrWgtClassName

protected TextWidget UIScriptedMenu::m_PrWgtClassName
private

Definition at line 1085 of file sceneeditormenu.c.

◆ m_PrWgtDir

protected EditBoxWidget UIScriptedMenu::m_PrWgtDir
private

Definition at line 1089 of file sceneeditormenu.c.

◆ m_PrWgtDmg

protected EditBoxWidget UIScriptedMenu::m_PrWgtDmg
private

Definition at line 1090 of file sceneeditormenu.c.

◆ m_PrWgtPoxX

protected EditBoxWidget UIScriptedMenu::m_PrWgtPoxX
private

Definition at line 1086 of file sceneeditormenu.c.

◆ m_PrWgtPoxY

protected EditBoxWidget UIScriptedMenu::m_PrWgtPoxY
private

Definition at line 1087 of file sceneeditormenu.c.

◆ m_PrWgtPoxZ

protected EditBoxWidget UIScriptedMenu::m_PrWgtPoxZ
private

Definition at line 1088 of file sceneeditormenu.c.

◆ m_PrWidgetsAttachments

protected ref array<ref UIPropertyAttachment> UIScriptedMenu::m_PrWidgetsAttachments
private

Definition at line 1095 of file sceneeditormenu.c.

◆ m_QuantityEditBox [1/2]

protected EditBoxWidget UIScriptedMenu::m_QuantityEditBox
private

Definition at line 1117 of file sceneeditormenu.c.

◆ m_QuantityEditBox [2/2]

EditBoxWidget UIScriptedMenu::m_QuantityEditBox
private

Definition at line 2641 of file scriptconsole.c.

◆ m_RandomizeCharacter

protected Widget UIScriptedMenu::m_RandomizeCharacter
private

Definition at line 17 of file charactercreationmenu.c.

◆ m_RectSpawnColumn

EditBoxWidget UIScriptedMenu::m_RectSpawnColumn
private

Definition at line 2657 of file scriptconsole.c.

◆ m_RectSpawnColumnStep

EditBoxWidget UIScriptedMenu::m_RectSpawnColumnStep
private

Definition at line 2659 of file scriptconsole.c.

◆ m_RectSpawnRow

EditBoxWidget UIScriptedMenu::m_RectSpawnRow
private

Definition at line 2656 of file scriptconsole.c.

◆ m_RectSpawnRowStep

EditBoxWidget UIScriptedMenu::m_RectSpawnRowStep
private

Definition at line 2658 of file scriptconsole.c.

◆ m_RefreshFilterTimer

ref Timer UIScriptedMenu::m_RefreshFilterTimer = new Timer()
private

Definition at line 39 of file scriptconsole.c.

◆ m_Reset

protected ButtonWidget UIScriptedMenu::m_Reset
private

Definition at line 16 of file optionsmenu.c.

Referenced by OnClick().

◆ m_RespawnButton

protected Widget UIScriptedMenu::m_RespawnButton
private

Definition at line 8 of file ingamemenu.c.

◆ m_RestartButton [1/2]

protected Widget UIScriptedMenu::m_RestartButton
private

Definition at line 7 of file ingamemenu.c.

◆ m_RestartButton [2/2]

protected ButtonWidget UIScriptedMenu::m_RestartButton
private

Definition at line 21 of file ingamemenuxbox.c.

◆ m_RestartDeadButton

protected ButtonWidget UIScriptedMenu::m_RestartDeadButton
private

Definition at line 20 of file ingamemenuxbox.c.

◆ m_RestartDeadCustomButton

protected Widget UIScriptedMenu::m_RestartDeadCustomButton
private

Definition at line 10 of file ingamemenu.c.

◆ m_RestartDeadRandomButton

protected Widget UIScriptedMenu::m_RestartDeadRandomButton
private

Definition at line 9 of file ingamemenu.c.

◆ m_Rows

int UIScriptedMenu::m_Rows
private

Definition at line 2550 of file scriptconsole.c.

◆ m_RunColor

int UIScriptedMenu::m_RunColor
private

Definition at line 27 of file scriptconsole.c.

◆ m_Save [1/2]

protected ButtonWidget UIScriptedMenu::m_Save
private

Definition at line 43 of file cameratoolsmenu.c.

◆ m_Save [2/2]

protected Widget UIScriptedMenu::m_Save
private

Definition at line 16 of file charactercreationmenu.c.

◆ m_SaveEvent

protected ButtonWidget UIScriptedMenu::m_SaveEvent
private

Definition at line 52 of file cameratoolsmenu.c.

◆ m_SaveKeyframe

protected ButtonWidget UIScriptedMenu::m_SaveKeyframe
private

Definition at line 47 of file cameratoolsmenu.c.

◆ m_Scene

DayZIntroScenePC UIScriptedMenu::m_Scene
private

Definition at line 8 of file charactercreationmenu.c.

◆ m_ScenePC

protected DayZIntroScenePC UIScriptedMenu::m_ScenePC
private

Definition at line 7 of file mainmenu.c.

◆ m_schemes_list

private TextListboxWidget UIScriptedMenu::m_schemes_list
private

Definition at line 60 of file presetsmenu.c.

◆ m_ScriptServer

bool UIScriptedMenu::m_ScriptServer
private

Definition at line 35 of file scriptconsole.c.

◆ m_Scroller

protected ScrollWidget UIScriptedMenu::m_Scroller
private

Definition at line 23 of file creditsmenu.c.

◆ m_ScrollIncrement

protected float UIScriptedMenu::m_ScrollIncrement
private

Definition at line 12 of file creditsmenu.c.

◆ m_ScrollLevel

protected float UIScriptedMenu::m_ScrollLevel
private

Definition at line 13 of file creditsmenu.c.

◆ m_ScrollMax

protected float UIScriptedMenu::m_ScrollMax
private

Definition at line 14 of file creditsmenu.c.

◆ m_ScrollSize

protected float UIScriptedMenu::m_ScrollSize
private

Definition at line 15 of file creditsmenu.c.

◆ m_SelectButtonTextID

protected string UIScriptedMenu::m_SelectButtonTextID
private

Definition at line 9 of file ingamemenuxbox.c.

◆ m_selected_tab

int UIScriptedMenu::m_selected_tab
private

Definition at line 2549 of file scriptconsole.c.

Referenced by SelectNextTab(), and SelectPreviousTab().

◆ m_SelectedActor

protected CTActor UIScriptedMenu::m_SelectedActor
private

Definition at line 21 of file cameratoolsmenu.c.

◆ m_SelectedEvent

protected CTEvent UIScriptedMenu::m_SelectedEvent
private

Definition at line 20 of file cameratoolsmenu.c.

◆ m_SelectedItem

protected Widget UIScriptedMenu::m_SelectedItem
private

Definition at line 120 of file gesturesmenu.c.

◆ m_SelectedKeyframe

protected CTKeyframe UIScriptedMenu::m_SelectedKeyframe
private

Definition at line 19 of file cameratoolsmenu.c.

◆ m_SelectedObject [1/2]

protected string UIScriptedMenu::m_SelectedObject
private

Definition at line 1124 of file sceneeditormenu.c.

Referenced by LateInit(), OnDoubleClick(), and SelectObject().

◆ m_SelectedObject [2/2]

string UIScriptedMenu::m_SelectedObject
private

Definition at line 2620 of file scriptconsole.c.

◆ m_SelectedObjectIsPreset [1/2]

protected bool UIScriptedMenu::m_SelectedObjectIsPreset
private

Definition at line 1125 of file sceneeditormenu.c.

◆ m_SelectedObjectIsPreset [2/2]

int UIScriptedMenu::m_SelectedObjectIsPreset = -1
staticprivate

Definition at line 2622 of file scriptconsole.c.

◆ m_SelectedObjectText

TextWidget UIScriptedMenu::m_SelectedObjectText
private

Definition at line 2619 of file scriptconsole.c.

◆ m_SelectedRowCopy

ButtonWidget UIScriptedMenu::m_SelectedRowCopy
private

Definition at line 2667 of file scriptconsole.c.

◆ m_SelectedServer

protected ServerBrowserEntry UIScriptedMenu::m_SelectedServer
private

Definition at line 25 of file serverbrowsermenunew.c.

◆ m_ServerInfoPanel [1/2]

protected Widget UIScriptedMenu::m_ServerInfoPanel
private

Definition at line 12 of file ingamemenu.c.

◆ m_ServerInfoPanel [2/2]

protected ref PlayerListScriptedWidget UIScriptedMenu::m_ServerInfoPanel
private

Definition at line 14 of file ingamemenuxbox.c.

◆ m_ServerInfoText

string UIScriptedMenu::m_ServerInfoText
private

Definition at line 3 of file ingamemenu.c.

◆ m_ServerIP

protected ref TextWidget UIScriptedMenu::m_ServerIP
private

Definition at line 19 of file ingamemenu.c.

◆ m_ServerName

protected ref TextWidget UIScriptedMenu::m_ServerName
private

Definition at line 21 of file ingamemenu.c.

◆ m_ServerPort

protected ref TextWidget UIScriptedMenu::m_ServerPort
private

Definition at line 20 of file ingamemenu.c.

◆ m_ServerRows

int UIScriptedMenu::m_ServerRows
private

Definition at line 2551 of file scriptconsole.c.

◆ m_SetKeybinds

protected ref array<int> UIScriptedMenu::m_SetKeybinds
private

Definition at line 19 of file keybindingsmenu.c.

◆ m_SettingsButton

protected Widget UIScriptedMenu::m_SettingsButton
private

Definition at line 21 of file mainmenu.c.

◆ m_ShoesSelector

protected ref OptionSelectorMultistateCharacterMenu UIScriptedMenu::m_ShoesSelector
private

Definition at line 31 of file charactercreationmenu.c.

◆ m_ShowOthers

CheckBoxWidget UIScriptedMenu::m_ShowOthers
private

Definition at line 2610 of file scriptconsole.c.

◆ m_ShowProtected

CheckBoxWidget UIScriptedMenu::m_ShowProtected
private

Definition at line 2609 of file scriptconsole.c.

◆ m_SkinSelector

protected ref OptionSelectorMultistateCharacterMenu UIScriptedMenu::m_SkinSelector
private

Definition at line 28 of file charactercreationmenu.c.

◆ m_SlObjectsList

protected ref map<int, SceneObject> UIScriptedMenu::m_SlObjectsList
private

Definition at line 1071 of file sceneeditormenu.c.

◆ m_slot_widget

private ItemPreviewWidget UIScriptedMenu::m_slot_widget
private

Definition at line 5 of file inspectmenunew.c.

◆ m_SlSelectedClass

protected string UIScriptedMenu::m_SlSelectedClass
private

Definition at line 1070 of file sceneeditormenu.c.

◆ m_SlWgtEbxFilter

protected EditBoxWidget UIScriptedMenu::m_SlWgtEbxFilter
private

Definition at line 1073 of file sceneeditormenu.c.

◆ m_SlWgtFocus

protected ButtonWidget UIScriptedMenu::m_SlWgtFocus
private

Definition at line 1075 of file sceneeditormenu.c.

◆ m_SlWgtLbxObjectsList

protected TextListboxWidget UIScriptedMenu::m_SlWgtLbxObjectsList
private

Definition at line 1072 of file sceneeditormenu.c.

◆ m_SlWgtLoadedScene

protected TextWidget UIScriptedMenu::m_SlWgtLoadedScene
private

Definition at line 1069 of file sceneeditormenu.c.

◆ m_SlWgtSelect

protected ButtonWidget UIScriptedMenu::m_SlWgtSelect
private

Definition at line 1074 of file sceneeditormenu.c.

◆ m_SoundFilter

EditBoxWidget UIScriptedMenu::m_SoundFilter
private

Definition at line 2625 of file scriptconsole.c.

◆ m_SoundSet

EffectSound UIScriptedMenu::m_SoundSet
staticprivate

Definition at line 7 of file scriptconsole.c.

◆ m_SoundsTab

protected ref OptionsMenuSounds UIScriptedMenu::m_SoundsTab
private

Definition at line 8 of file optionsmenu.c.

◆ m_SoundsTextListbox

TextListboxWidget UIScriptedMenu::m_SoundsTextListbox
private

Definition at line 2626 of file scriptconsole.c.

◆ m_SpawnAsAttachment

ButtonWidget UIScriptedMenu::m_SpawnAsAttachment
private

Definition at line 2649 of file scriptconsole.c.

Referenced by OnClick().

◆ m_SpawnAsAttachmentButton

protected ButtonWidget UIScriptedMenu::m_SpawnAsAttachmentButton
private

Definition at line 1108 of file sceneeditormenu.c.

Referenced by OnClick().

◆ m_SpawnBatchButton

ButtonWidget UIScriptedMenu::m_SpawnBatchButton
private

Definition at line 2653 of file scriptconsole.c.

◆ m_SpawnDistanceEditBox [1/2]

protected EditBoxWidget UIScriptedMenu::m_SpawnDistanceEditBox
private

Definition at line 1118 of file sceneeditormenu.c.

◆ m_SpawnDistanceEditBox [2/2]

EditBoxWidget UIScriptedMenu::m_SpawnDistanceEditBox
private

Definition at line 2618 of file scriptconsole.c.

◆ m_SpawnGroundButton

ButtonWidget UIScriptedMenu::m_SpawnGroundButton
private

Definition at line 2647 of file scriptconsole.c.

Referenced by OnClick().

◆ m_SpawnGroundPatternGrid

ButtonWidget UIScriptedMenu::m_SpawnGroundPatternGrid
private

Definition at line 2648 of file scriptconsole.c.

Referenced by OnClick().

◆ m_SpawnInInvButton

ButtonWidget UIScriptedMenu::m_SpawnInInvButton
private

Definition at line 2646 of file scriptconsole.c.

Referenced by OnClick().

◆ m_SpawnInInventoryButton

protected ButtonWidget UIScriptedMenu::m_SpawnInInventoryButton
private

Definition at line 1107 of file sceneeditormenu.c.

Referenced by OnClick().

◆ m_SpawnOnGroundButton

protected ButtonWidget UIScriptedMenu::m_SpawnOnGroundButton
private

Definition at line 1106 of file sceneeditormenu.c.

Referenced by OnClick().

◆ m_SpawnSpecial

ButtonWidget UIScriptedMenu::m_SpawnSpecial
private

Definition at line 2650 of file scriptconsole.c.

Referenced by OnClick().

◆ m_Stats

protected ref MainMenuStats UIScriptedMenu::m_Stats
private

Definition at line 3 of file mainmenu.c.

◆ m_Stop

protected ButtonWidget UIScriptedMenu::m_Stop
private

Definition at line 42 of file cameratoolsmenu.c.

◆ m_StopSoundset

ButtonWidget UIScriptedMenu::m_StopSoundset
private

Definition at line 2594 of file scriptconsole.c.

◆ m_SymbolCount

protected int UIScriptedMenu::m_SymbolCount
private

Definition at line 10 of file notemenu.c.

◆ m_Tab_buttons

ButtonWidget UIScriptedMenu::m_Tab_buttons[TABS_COUNT]
private

Definition at line 2687 of file scriptconsole.c.

◆ m_tab_images

protected ImageWidget UIScriptedMenu::m_tab_images[TABS_COUNT]
private

Definition at line 17 of file tutorialsmenu.c.

◆ m_Tabber

protected TabberUI UIScriptedMenu::m_Tabber
private

Definition at line 3 of file keybindingsmenu.c.

◆ m_TabberWidget

protected Widget UIScriptedMenu::m_TabberWidget
private

Definition at line 40 of file controlsxboxnew.c.

◆ m_Tabs [1/2]

protected ref array<ref KeybindingsGroup> UIScriptedMenu::m_Tabs
private

Definition at line 7 of file keybindingsmenu.c.

◆ m_Tabs [2/2]

Widget UIScriptedMenu::m_Tabs[TABS_COUNT]
private

Definition at line 2685 of file scriptconsole.c.

◆ m_TabScript

protected TabberUI UIScriptedMenu::m_TabScript
private

Definition at line 39 of file controlsxboxnew.c.

◆ m_TargetPresetIndex

protected int UIScriptedMenu::m_TargetPresetIndex
private

Definition at line 18 of file keybindingsmenu.c.

◆ m_TeleportButton

ButtonWidget UIScriptedMenu::m_TeleportButton
private

Definition at line 2579 of file scriptconsole.c.

◆ m_TeleportX

EditBoxWidget UIScriptedMenu::m_TeleportX
private

Definition at line 2582 of file scriptconsole.c.

◆ m_TeleportXYZ

EditBoxWidget UIScriptedMenu::m_TeleportXYZ
private

Definition at line 2584 of file scriptconsole.c.

◆ m_TeleportY

EditBoxWidget UIScriptedMenu::m_TeleportY
private

Definition at line 2583 of file scriptconsole.c.

◆ m_TextPress

RichTextWidget UIScriptedMenu::m_TextPress
private

Definition at line 4 of file titlescreenmenu.c.

◆ m_Time

protected float UIScriptedMenu::m_Time
private

Definition at line 7 of file cameratoolsmenu.c.

◆ m_TimeSlider

SliderWidget UIScriptedMenu::m_TimeSlider
private

Definition at line 33 of file scriptconsole.c.

◆ m_title

protected TextWidget UIScriptedMenu::m_title
private

Definition at line 4 of file bookmenu.c.

◆ m_ToolbarPanel

protected Widget UIScriptedMenu::m_ToolbarPanel
private

Definition at line 110 of file gesturesmenu.c.

◆ m_ToolScaleCellSizeCanvasWidth

protected float UIScriptedMenu::m_ToolScaleCellSizeCanvasWidth
private

Definition at line 12 of file mapmenu.c.

◆ m_ToolsCompassArrow

protected ImageWidget UIScriptedMenu::m_ToolsCompassArrow
private

Definition at line 24 of file mapmenu.c.

◆ m_ToolsCompassAzimuth

protected TextWidget UIScriptedMenu::m_ToolsCompassAzimuth
private

Definition at line 25 of file mapmenu.c.

◆ m_ToolsCompassBase

protected Widget UIScriptedMenu::m_ToolsCompassBase
private

Definition at line 23 of file mapmenu.c.

◆ m_ToolsGPSElevationText

protected TextWidget UIScriptedMenu::m_ToolsGPSElevationText
private

Definition at line 27 of file mapmenu.c.

◆ m_ToolsGPSXText

protected TextWidget UIScriptedMenu::m_ToolsGPSXText
private

Definition at line 28 of file mapmenu.c.

◆ m_ToolsGPSYText

protected TextWidget UIScriptedMenu::m_ToolsGPSYText
private

Definition at line 29 of file mapmenu.c.

◆ m_ToolsScaleCellSizeCanvas

protected CanvasWidget UIScriptedMenu::m_ToolsScaleCellSizeCanvas
private

Definition at line 31 of file mapmenu.c.

◆ m_ToolsScaleCellSizeText

protected TextWidget UIScriptedMenu::m_ToolsScaleCellSizeText
private

Definition at line 30 of file mapmenu.c.

◆ m_ToolsScaleContourText

protected TextWidget UIScriptedMenu::m_ToolsScaleContourText
private

Definition at line 26 of file mapmenu.c.

◆ m_TopSelector

protected ref OptionSelectorMultistateCharacterMenu UIScriptedMenu::m_TopSelector
private

Definition at line 29 of file charactercreationmenu.c.

◆ m_TutorialButton

protected Widget UIScriptedMenu::m_TutorialButton
private

Definition at line 19 of file mainmenu.c.

◆ m_Tutorials

protected Widget UIScriptedMenu::m_Tutorials
private

Definition at line 18 of file mainmenu.c.

Referenced by OnClick().

◆ m_TutorialsButton

protected ButtonWidget UIScriptedMenu::m_TutorialsButton
private

Definition at line 25 of file ingamemenuxbox.c.

◆ m_txtDescription

protected TextWidget UIScriptedMenu::m_txtDescription
private

Definition at line 139 of file dayzgame.c.

◆ m_txtLabel

protected TextWidget UIScriptedMenu::m_txtLabel
private

Definition at line 140 of file dayzgame.c.

◆ m_txtNote

protected TextWidget UIScriptedMenu::m_txtNote
private

Definition at line 23 of file dayzgame.c.

◆ m_txtPosition

protected TextWidget UIScriptedMenu::m_txtPosition
private

Definition at line 22 of file dayzgame.c.

◆ m_Undo

protected ButtonWidget UIScriptedMenu::m_Undo
private

Definition at line 12 of file keybindingsmenu.c.

◆ m_UnfavoriteImage

protected Widget UIScriptedMenu::m_UnfavoriteImage
private

Definition at line 15 of file ingamemenu.c.

◆ m_UnmuteButtonTextID

protected string UIScriptedMenu::m_UnmuteButtonTextID
private

Definition at line 7 of file ingamemenuxbox.c.

◆ m_UpButton

protected ButtonWidget UIScriptedMenu::m_UpButton
private

Definition at line 1109 of file sceneeditormenu.c.

◆ m_UpdateMap

bool UIScriptedMenu::m_UpdateMap
private

Definition at line 36 of file scriptconsole.c.

◆ m_UpperLegendContainer

protected Widget UIScriptedMenu::m_UpperLegendContainer
private

Definition at line 22 of file mapmenu.c.

◆ m_VariantWidget

protected Widget UIScriptedMenu::m_VariantWidget
private

Definition at line 43 of file controlsxboxnew.c.

Referenced by DrawConnectingLines().

◆ m_Version

protected TextWidget UIScriptedMenu::m_Version
private

Definition at line 27 of file ingamemenuxbox.c.

◆ m_VicinityItems

ref array<Object> UIScriptedMenu::m_VicinityItems = new array<Object>
private

Definition at line 25 of file scriptconsole.c.

◆ m_VicinityListbox

TextListboxWidget UIScriptedMenu::m_VicinityListbox
private

Definition at line 2671 of file scriptconsole.c.

◆ m_Video [1/2]

protected ref MainMenuVideo UIScriptedMenu::m_Video
private

Definition at line 4 of file mainmenu.c.

◆ m_Video [2/2]

protected VideoWidget UIScriptedMenu::m_Video
private

Definition at line 6 of file mainmenuvideo.c.

◆ m_VideoFadeTimer

protected ref WidgetFadeTimer UIScriptedMenu::m_VideoFadeTimer
private

Definition at line 8 of file mainmenuvideo.c.

◆ m_VideoPlayTimer

protected ref Timer UIScriptedMenu::m_VideoPlayTimer
private

Definition at line 7 of file mainmenuvideo.c.

◆ m_VideoTab

protected ref OptionsMenuVideo UIScriptedMenu::m_VideoTab
private

Definition at line 9 of file optionsmenu.c.

◆ m_ViewEvent

protected ButtonWidget UIScriptedMenu::m_ViewEvent
private

Definition at line 54 of file cameratoolsmenu.c.

◆ m_ViewKeyframe

protected ButtonWidget UIScriptedMenu::m_ViewKeyframe
private

Definition at line 49 of file cameratoolsmenu.c.

◆ m_WasChanged

protected bool UIScriptedMenu::m_WasChanged
private

Definition at line 7 of file mapmenu.c.

◆ m_WatchItem

ButtonWidget UIScriptedMenu::m_WatchItem
private

Definition at line 2652 of file scriptconsole.c.

◆ m_WgtBtnDeleteRuler

protected ButtonWidget UIScriptedMenu::m_WgtBtnDeleteRuler
private

Definition at line 1060 of file sceneeditormenu.c.

◆ m_WgtBtnEditInitScript

protected ButtonWidget UIScriptedMenu::m_WgtBtnEditInitScript
private

Definition at line 1091 of file sceneeditormenu.c.

◆ m_WgtBtnEditorSettings

protected ButtonWidget UIScriptedMenu::m_WgtBtnEditorSettings
private

Definition at line 1059 of file sceneeditormenu.c.

◆ m_WgtBtnLeftPresets

protected ButtonWidget UIScriptedMenu::m_WgtBtnLeftPresets
private

Definition at line 1121 of file sceneeditormenu.c.

◆ m_WgtBtnPositionManager

protected ButtonWidget UIScriptedMenu::m_WgtBtnPositionManager
private

Definition at line 1122 of file sceneeditormenu.c.

◆ m_WgtBtnSceneManager

protected ButtonWidget UIScriptedMenu::m_WgtBtnSceneManager
private

Definition at line 1056 of file sceneeditormenu.c.

◆ m_WgtBtnSceneSave

protected ButtonWidget UIScriptedMenu::m_WgtBtnSceneSave
private

Definition at line 1058 of file sceneeditormenu.c.

◆ m_WgtBtnSceneSettings

protected ButtonWidget UIScriptedMenu::m_WgtBtnSceneSettings
private

Definition at line 1057 of file sceneeditormenu.c.

◆ m_WgtClassesConfig

Widget UIScriptedMenu::m_WgtClassesConfig
private

Definition at line 26 of file scriptconsole.c.

◆ m_WgtPnlWrapper

protected Widget UIScriptedMenu::m_WgtPnlWrapper
private

Definition at line 1120 of file sceneeditormenu.c.

◆ m_WgtPopupsBg

protected Widget UIScriptedMenu::m_WgtPopupsBg
private

Definition at line 1064 of file sceneeditormenu.c.

◆ m_WgtPopupsMain

protected Widget UIScriptedMenu::m_WgtPopupsMain
private

Definition at line 1063 of file sceneeditormenu.c.

◆ m_WgtRoot

protected Widget UIScriptedMenu::m_WgtRoot
private

Definition at line 1049 of file sceneeditormenu.c.

◆ MENU_FADEIN_TIME

protected float UIScriptedMenu::MENU_FADEIN_TIME = 2.0
staticprivate

Definition at line 3 of file creditsmenu.c.

Referenced by Init().

◆ MODAL_ID_BACK

const int UIScriptedMenu::MODAL_ID_BACK = 1337
private

Definition at line 21 of file keybindingsmenu.c.

◆ MODAL_ID_DEFAULT

const int UIScriptedMenu::MODAL_ID_DEFAULT = 100
private

Definition at line 22 of file keybindingsmenu.c.

◆ MODAL_ID_PRESET_CHANGE

const int UIScriptedMenu::MODAL_ID_PRESET_CHANGE = 200
private

Definition at line 23 of file keybindingsmenu.c.

◆ PATH_MOUSEKEY

protected const string UIScriptedMenu::PATH_MOUSEKEY = "Scripts/data/PageDataTutorials.json"
private

Definition at line 3 of file tutorialsmenu.c.

Referenced by GetControlMappingInfo().

◆ PATH_PS_NEW

protected const string UIScriptedMenu::PATH_PS_NEW = "PS4/PageDataTutorialsAlternate.json"
private

Definition at line 7 of file tutorialsmenu.c.

Referenced by GetControlMappingInfo().

◆ PATH_PS_OLD

protected const string UIScriptedMenu::PATH_PS_OLD = "PS4/PageDataTutorials.json"
private

Definition at line 6 of file tutorialsmenu.c.

Referenced by GetControlMappingInfo().

◆ PATH_X1_NEW

protected const string UIScriptedMenu::PATH_X1_NEW = "Xbox/PageDataTutorialsAlternate.json"
private

Definition at line 5 of file tutorialsmenu.c.

Referenced by GetControlMappingInfo().

◆ PATH_X1_OLD

protected const string UIScriptedMenu::PATH_X1_OLD = "Xbox/PageDataTutorials.json"
private

Definition at line 4 of file tutorialsmenu.c.

Referenced by GetControlMappingInfo().

◆ PLATFORM_ADJUST_PS

protected const int UIScriptedMenu::PLATFORM_ADJUST_PS = 2000
private

Definition at line 52 of file controlsxboxnew.c.

◆ PLATFORM_ADJUST_X1

protected const int UIScriptedMenu::PLATFORM_ADJUST_X1 = 1000
private

Definition at line 51 of file controlsxboxnew.c.

◆ POPUP_ID_CONFIGS

const int UIScriptedMenu::POPUP_ID_CONFIGS = 11
staticprivate

Definition at line 16 of file sceneeditormenu.c.

◆ POPUP_ID_EDITOR_SETTINGS

const int UIScriptedMenu::POPUP_ID_EDITOR_SETTINGS = 6
staticprivate

Definition at line 11 of file sceneeditormenu.c.

◆ POPUP_ID_INIT_SCRIPT

const int UIScriptedMenu::POPUP_ID_INIT_SCRIPT = 7
staticprivate

Definition at line 12 of file sceneeditormenu.c.

◆ POPUP_ID_NOTIFY

const int UIScriptedMenu::POPUP_ID_NOTIFY = 5
staticprivate

Definition at line 10 of file sceneeditormenu.c.

◆ POPUP_ID_POSITION_MANAGER

const int UIScriptedMenu::POPUP_ID_POSITION_MANAGER = 8
staticprivate

Definition at line 13 of file sceneeditormenu.c.

◆ POPUP_ID_PRESET_NEW

const int UIScriptedMenu::POPUP_ID_PRESET_NEW = 9
staticprivate

Definition at line 14 of file sceneeditormenu.c.

◆ POPUP_ID_PRESET_RENAME

const int UIScriptedMenu::POPUP_ID_PRESET_RENAME = 10
staticprivate

Definition at line 15 of file sceneeditormenu.c.

◆ POPUP_ID_SCENE_DELETE

const int UIScriptedMenu::POPUP_ID_SCENE_DELETE = 4
staticprivate

Definition at line 9 of file sceneeditormenu.c.

◆ POPUP_ID_SCENE_MANAGER

const int UIScriptedMenu::POPUP_ID_SCENE_MANAGER = 0
staticprivate

Definition at line 5 of file sceneeditormenu.c.

◆ POPUP_ID_SCENE_NEW

const int UIScriptedMenu::POPUP_ID_SCENE_NEW = 2
staticprivate

Definition at line 7 of file sceneeditormenu.c.

◆ POPUP_ID_SCENE_RENAME

const int UIScriptedMenu::POPUP_ID_SCENE_RENAME = 3
staticprivate

Definition at line 8 of file sceneeditormenu.c.

◆ POPUP_ID_SCENE_SETTINGS

const int UIScriptedMenu::POPUP_ID_SCENE_SETTINGS = 1
staticprivate

Definition at line 6 of file sceneeditormenu.c.

◆ PRESETS_SELECTED_ROW

int UIScriptedMenu::PRESETS_SELECTED_ROW = 0
staticprivate

Definition at line 16 of file scriptconsole.c.

◆ RADIAL_TEXT

const string UIScriptedMenu::RADIAL_TEXT = "RadialText"
private

Definition at line 115 of file gesturesmenu.c.

◆ SCALE_RULER_LINE_WIDTH

protected const int UIScriptedMenu::SCALE_RULER_LINE_WIDTH = 8
private

Definition at line 4 of file mapmenu.c.

◆ SCALE_RULER_NUM_SEGMENTS

protected const int UIScriptedMenu::SCALE_RULER_NUM_SEGMENTS = 10
private

Definition at line 5 of file mapmenu.c.

Referenced by RenderScaleRuler().

◆ SHOW_OTHERS

bool UIScriptedMenu::SHOW_OTHERS = 0
staticprivate

Definition at line 19 of file scriptconsole.c.

◆ TAB_CONFIGS

const int UIScriptedMenu::TAB_CONFIGS = 2
staticprivate

Definition at line 2676 of file scriptconsole.c.

Referenced by Init().

◆ TAB_ENSCRIPT

const int UIScriptedMenu::TAB_ENSCRIPT = 3
staticprivate

Definition at line 2677 of file scriptconsole.c.

Referenced by Init().

◆ TAB_ENSCRIPT_SERVER

const int UIScriptedMenu::TAB_ENSCRIPT_SERVER = 4
staticprivate

Definition at line 2678 of file scriptconsole.c.

Referenced by Init().

◆ TAB_ITEMS

const int UIScriptedMenu::TAB_ITEMS = 1
staticprivate

Definition at line 2675 of file scriptconsole.c.

Referenced by Init().

◆ TABS_COUNT [1/2]

protected const int UIScriptedMenu::TABS_COUNT = 4
private

Definition at line 16 of file tutorialsmenu.c.

Referenced by OnClick(), and SelectTab().

◆ TABS_COUNT [2/2]

const int UIScriptedMenu::TABS_COUNT = 8
staticprivate

Definition at line 2683 of file scriptconsole.c.

◆ TABS_GENERAL

const int UIScriptedMenu::TABS_GENERAL = 0
staticprivate

Definition at line 2674 of file scriptconsole.c.

Referenced by Init().

◆ TABS_OUTPUT

const int UIScriptedMenu::TABS_OUTPUT = 5
staticprivate

Definition at line 2679 of file scriptconsole.c.

Referenced by Init().

◆ TABS_SOUNDS

const int UIScriptedMenu::TABS_SOUNDS = 7
staticprivate

Definition at line 2681 of file scriptconsole.c.

Referenced by Init().

◆ TABS_VICINITY

const int UIScriptedMenu::TABS_VICINITY = 6
staticprivate

Definition at line 2680 of file scriptconsole.c.

Referenced by Init().

◆ TEXT_ITEM_NAME

const string UIScriptedMenu::TEXT_ITEM_NAME = "ItemName"
private

Definition at line 97 of file radialquickbarmenu.c.

◆ TEXT_ITEM_TITLE

const string UIScriptedMenu::TEXT_ITEM_TITLE = "ItemTitle"
private

Definition at line 98 of file radialquickbarmenu.c.

◆ TOOLTIP_ID_APPLY

const int UIScriptedMenu::TOOLTIP_ID_APPLY = 2
private

Definition at line 12 of file charactercreationmenu.c.

Referenced by OnFocus(), and OnMouseEnter().

◆ TOOLTIP_ID_SAVE

const int UIScriptedMenu::TOOLTIP_ID_SAVE = 1
private

Definition at line 11 of file charactercreationmenu.c.

Referenced by OnFocus(), and OnMouseEnter().